News for hackers. Stuff that matters.
Re:I don’t like the Ruby 1.9 hash syntax by tptacek on Wednesday December 14, 2011 @09:19PM (#3354761)
His specific question has a more prosaic answer, I think; optional parens make DSLs easier by making Ruby's syntax more flexible, thus allowing it to stand in for more languages.

For instance, a few years ago, a summer internship project was to build a native debugger for OS X in pure Ruby, and to help with that, I wrote a chunk of X86 assembly as a Ruby DSL:

http://news.ycombinator.com/item?id=284238

Re:I don’t like the Ruby 1.9 hash syntax by chc on Wednesday December 14, 2011 @10:14PM (#3354884)
I don't think so, at least not so directly. IIRC, this idea of "DSLs" in Ruby didn't gain currency until relatively late in the language's history, a little while after Rails made it explode and Why wrote his Poignant Guide featuring Dwemthy's Array. But Ruby had basically the same syntax long before that.

I think the real answer is what I said: It makes Ruby's syntax lighter and more flexible so the pony could get more mileage out of its one trick (pure OO), and the convenience of writing DSLs just falls out of that.

BTW, that DSL is an awesome hack.