Better HN
topnewbestaskshowjobs
Log inSign up

zya

8 karma · joined Nov 28, 2010 (16y ago) · 1 submissions

Submissions

comment 16y ago · link · parent

A lot of 'unnecessary' syntax is comming from the fact that block forms 'do..end, {}' are not objects in Ruby.

I wish Ruby implemented them the same way as in Smalltalk, to be used as objects passed to a method's arguments.

All the 'do..end, {}', '&', 'yield', block_given?, etc. would have been gone. And there would be just one unified way to construct and call a block.

This is the only part of the language I find wrong in Ruby. Any Rubyists share the same feeling?