4 ms·
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 funct
by awj 15y ago
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.