Re: Symbol#to_proc is just so beautiful

There must be a way to ditch that ‘&’ somehow. I’d prefer this:
arr.each(&:upcase!)
arr.collect(&:downcase)

I don’t like it. It bugs me. That ampersand is an eye sore in otherwise
elegant syntax. I also worry about the inevitable, “Does that mean it’s
a reference?” questions this syntax will generate from newbies.

Maybe, instead of changing Ruby to simplify Enumerable/Array/Hash
methods (and let’s face it, that’s about 95% of the reason most people
want this change) we should just, you know, change the
Enumerable/Array/Hash API to accept symbolic methods for simple
comparisons.

Just my .02.

Regards,

Dan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs