News for hackers. Stuff that matters.
Re:Functional JavaScript, Part 3: apply, call, and the argum... by platz on Tuesday April 22, 2014 @04:48PM (#7630344)
I think Lonsdorf needs to check out PureScript https://github.com/purescript/purescript. He's practically writing in a style like it already.
Re:Functional JavaScript, Part 3: apply, call, and the argum... by vqc on Tuesday April 22, 2014 @08:16PM (#7631302)
It would also be helpful to have resources regarding the type notation that he uses. I imagine that the notation is the same regardless of the language you use to apply it, but I'm not in a position to be sure. E.g. http://learnyouahaskell.com/types-and-typeclasses
Re:Functional JavaScript, Part 3: apply, call, and the argum... by platz on Tuesday April 22, 2014 @10:20PM (#7631692)
Yes he's borrowing the type notation from haskell to make his intentions clear, but of course this is only conceptual, and comments can be wrong - you'd need something like TypeScript to actually get feedback on types.