3 ms·
>There is no reason that a similar project could not have been made via smaller modules using comment annotations. That would be awkward, especially as your pr
by nawitus 12y ago
>There is no reason that a similar project could not have been made via smaller modules using comment annotations.
That would be awkward, especially as your program scales.
/*T (foo: A) => (bar: A) => A */
var func = foo => bar => foo * bar;
Instead of:
var func = (foo: A) => (bar: A) => foo * bar;
Handling callback type annotations would make pretty ugly code..
- tel 12y agoWhy do you think that is the case? On-their-own-line type annotations is probably one of my favorite bits of Haskell syntax func :: A -> A -> A func foo bar = foo * bar