Comment on Ruby's not readyparentComments−tptacek18yI 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.
Comments
I agree that block syntax should semantically result in expression evaluating to a Proc object. This would be great:
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.