News for hackers. Stuff that matters.
Re:Ruby's not ready by brlewis on Tuesday April 08, 2008 @01:46PM (#158062)
If it's meant to recast certain language functionality in terms of anonymous functions, why didn't they just make block literals return anonymous functions? It still strikes me as an almost-could-have-been-great syntax.

Idiomatic Scheme basically never has "do" loops, despite their being part of the core standard, and it's been that way for decades.

Re:Ruby's not ready by tptacek on Tuesday April 08, 2008 @02:11PM (#158090)
I agree that block syntax should semantically result in expression evaluating to a Proc object. This would be great:

  y = {|x| x} # => #<Proc>
I agree that block syntax could therefore be greater than it is.

I disagree that you can fairly knock Ruby for this, since blocks and implicit block arguments are still better than what you get in other languages.