General

Profile

tbenst (Tyler Benster)

  • Login: tbenst
  • Email: tbenst@gmail.com
  • Registered on: 01/11/2011
  • Last sign in: 05/10/2011

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

01/13/2011

10:17 AM Ruby Feature #4276 (Closed): Allow use of quotes in symbol syntactic sugar for hashes
Current syntactic sugar allows this:
hash = {Alabama: "AL"}
This feature request is to also allow symbols delimited by quotes (and thus able to contain a whitespace) to use an equivalent syntactic sugar:
hash2 = {"Rhode ...
tbenst (Tyler Benster)

01/11/2011

12:06 PM Ruby Bug #4259 (Rejected): Symbol syntactic sugar in Hashes does not work with quotes
=begin
To reproduce the problem, try the following in irb:

>> hash = {Alabama: "AL"}
=> {:Alabama=>"AL"}
>> puts hash[:"Alabama"]
AL
=> nil
>> hash2 = {"Rhode Island": "RI"}
SyntaxError: (irb):3: syntax error, unexpecte...
tbenst (Tyler Benster)

Also available in: Atom