Autoclosure is a super interesting trick Swift has for solving problems usually reserved for macros: https://developer.apple.com/swift/blog/?id=4 …
autoclosures were more "cute" in my experience -- more aggressive sugar for passing closures is the bigger win IMO.
-
-
e.g. `array.sort { $0 < $1 }`
-
Ah OK! I've long wanted that. Again, Scala has something similar: `array.sort { _ < _ }`
-
Heh, swift has `array.sort(<)` :P
#GetOnApplesLevel -
Haskell too :)
-
pretty sure "you can do this in haskell" borders on vacuous. Although upon reflection the two have similar operator overloading
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.