Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 1.9 hash syntax #64

Closed
mverzilli opened this issue Jan 6, 2014 · 2 comments
Closed

Ruby 1.9 hash syntax #64

mverzilli opened this issue Jan 6, 2014 · 2 comments

Comments

@mverzilli
Copy link

Syntax error in zzz: expecting token '=>', not ':'

    sc = { A: 0, C: 0, G: 0, T: 0 }

Can I add support for this syntax?

@And3s
Copy link

And3s commented Jan 6, 2014

my opintion, that's good if you can add support fot it.

@asterite
Copy link
Member

asterite commented Jan 6, 2014

Hi! Yes, I agree, this should be supported. I just fixed it: the fix was so simple that I preferred to do it myself.

Anyway, we are still not sure hashes with symbol keys will be very useful in Crystal, but for now we'll have them for consistency (ruby 1.9 hash syntax was supported, but only for lowercase symbols).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants