Re:Why Python doesn't need blocks
by andrewvc on Monday June 30, 2014 @12:48PM
(#7966045)
You don't need understand that much. If all you know is "a block is just fancy syntax for passing an optional lambda into a method", that will suit you just fine. Does it capture 100% of the nuances of a block? No. But it's a fine bit of functional knowledge. If you throw in calling Object#method(:foo) returns what amounts to lambda {|args| Object.foo|args| } you have 99% of what you'll ever need.
[ Parent
| on HN ]
There are no comments on this comment yet.