News for hackers. Stuff that matters.
Re:Move.js by awj on Tuesday August 09, 2011 @12:52PM (#2864706)
I still think I like haskell's approach to this problem:

  hello = \name -> putStrLn ("Hello, " + name)
That said, Haskell doesn't end up needing no-arg functions the way JavaScript does, but I think "\-> { }" wouldn't be too bad. At the least it does a slightly better job of resembling a lambda than the caret.

There are no comments on this comment yet.