General

Profile

hcatlin (Hampton Catlin)

  • Login: hcatlin
  • Email: hcatlin@gmail.com
  • Registered on: 12/26/2015
  • Last sign in: 01/17/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

01/17/2021

01:31 PM Ruby Feature #11882: Map or NamedMap
I agree that `{ {a: 1} }` and `{{a: 1}}` in my suggested syntax is difficult to disambiguate. The magic inside the Ruby parser that can separate the differences as they are today must be very mind bogglingly difficult. If it were possibl... hcatlin (Hampton Catlin)
12:57 PM Ruby Feature #17472: HashWithIndifferentAccess like Hash extension

During my 15 years of Ruby programming, I can't remember a single time that the difference between string-and-symbol with regards to Hashes was used on purpose. Instead, it's the source of countless bugs, extra type checking code, and ...
hcatlin (Hampton Catlin)

12/28/2015

03:30 AM Ruby Feature #11882: Map or NamedMap
That's such a kind of.... odd opinion to me. I've been doing ruby for 10 years, and I still have to write fairly obvious handling code when building programming interfaces and libraries... over and over again. I guess I just see 95% of H... hcatlin (Hampton Catlin)

12/27/2015

10:13 PM Ruby Feature #11882: Map or NamedMap
It was pointed out to me, that there is an ambiguity in the following case.
~~~
array.method {{a: 1}}
# could be
array.method { {a: 1} }
#or
#array.method(Map.new({a: 1}))
~~~
To be fair, I feel that this would be an extremel...
hcatlin (Hampton Catlin)

12/26/2015

08:57 PM Ruby Feature #11882: Map or NamedMap
Sorry, forgot to add that the literal syntax would support all currently supported string-key variations that Hash does...
~~~
{{"a" => true}}
{{a: true}}
{{:a => true}}
~~~
Map.new would merge in standard Hashes string keys, u...
hcatlin (Hampton Catlin)
08:28 PM Ruby Feature #11882 (Assigned): Map or NamedMap
Hash is one of the best features of Ruby. I remember being so pleased when I first learned Ruby to find out that *anything* could be a key and that you could do some really clever things with scripts, if you key of non-traditional elemen... hcatlin (Hampton Catlin)

Also available in: Atom