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

" * Never use smalltalk: symbols." #2

Open
ghost opened this issue Jun 5, 2015 · 1 comment
Open

" * Never use smalltalk: symbols." #2

ghost opened this issue Jun 5, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 5, 2015

Hey chris2,

Do you think you could clarify on that part?

I am unsure what smalltalk: symbols are and perhaps other people may also not know.

Thanks!

@leahneukirchen
Copy link
Owner

"Robert A. Heiler" [email protected] writes:

Hey chris2,

Do you think you could clarify on that part?

I am unsure what smalltalk: symbols are and perhaps other people may
also not know.

Well, these new-style symbol hashes in Ruby 2:

>> {foo: 42, bar: 23}
=> {:foo=>42, :bar=>23}

>> p foo: 42, bar: 23
{:foo=>42, :bar=>23}

I think they are harder to parse because that it's a symbol is only
clear at the final :.

Christian Neukirchen [email protected] http://chneukirchen.org

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

1 participant