Re:New IDE: code bubbles
by jrockway on Wednesday March 10, 2010 @06:03PM
(#1182278)
If only there was some combinator for sequencing computations... then you could write:
and there would never be a NullPointerException, because the >>= function could react appropriately when null was encountered!
[ Parent
| on HN ]
You win at the "Most Subtle Haskell Reference" in this conversation.
Since I don't know haskell, I'll throw out that groovy does this too.
foo?.bar()?.baz?.quux
What other languages have this kind of shortcut?
Re:New IDE: code bubbles
by aquadoctorbob on Wednesday March 10, 2010 @08:55PM
(#1182586)
CoffeeScript: http://jashkenas.github.com/coffee-script/#existence
Since coffeescript was mentioned, the Ruby andand library is also frequently mentioned when this comes up. (I only ruby for Rake).