Sing9898 (Sing Lou)
- Login: Sing9898
- Email: 3b06e8d4@opayq.com
- Registered on: 09/23/2013
- Last sign in: 09/23/2013
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
09/23/2013
-
07:42 PM Ruby Feature #8939: symbol / string invariance (for hashes)
- yes,duplicate, thanks
-
06:36 PM Ruby Feature #8939: symbol / string invariance (for hashes)
- Update: then let's make HashWithIndifferentAccess the standard hash somehow
-
04:51 PM Ruby Feature #8939 (Closed): symbol / string invariance (for hashes)
- hash={key:"value"}
hash["key"] should return "value"
hash={"key"=>"value"}
hash[:key] should return "value" -
07:35 PM Ruby Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
- the confusing became probably more immediate after the introduction of the new {a:"b"} syntax.
because for novices it might not be clear whether {a:"b"} means {"a"=>"b"} or {:a =>"b"} -
07:27 PM Ruby Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccess
- I am so glad this ticket wasn't rejected because it is a constructive solution to one of the biggest Ruby frustrations. (Even if you understand the difference between strings and symbol it still causes many hidden bugs).
-
04:49 PM Ruby Feature #8938 (Closed): it keyword
- automatic 'it' keyword for block variable:
items.each{|x| puts x.name }
=>
items.each{puts it.name}