Hash new notation whitespace



Why is this notation not allowed?
I found it confusing that I have to do :"Fight club" => 5 but Memento: 5 is ok.

movies = {
    "Fight club": 5

Memento: 5

The above is a symbol. "Fight Club": is not a valid symbol so we need to revert to the syntax that supports quoted strings.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.