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

Let's require symbol keys in hashes #5

Open
wasnotrice opened this issue Apr 9, 2012 · 0 comments
Open

Let's require symbol keys in hashes #5

wasnotrice opened this issue Apr 9, 2012 · 0 comments

Comments

@wasnotrice
Copy link
Member

Currently, Brown Shoes stringifies keys of hashes before processing them. Red Shoes just expects symbol keys and ignores what it doesn't expect. I think purple and green also deal only in symbols. Stringifying all of the keys adds complexity without really adding any benefit.

This example, from the manual, works in Red Shoes:

Shoes.app do
   @s = stack { background green }
   @s.style(:width => 400, :height => 200)
 end

but with stringified keys, it doesn't:

Shoes.app do
   @s = stack { background green }
   @s.style('width' => 400, 'height' => 200)
 end
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