3 ms·
Interesting that the Haskell version is the most concise and also has as much or more typing than the rest!
by appamatto 13y ago
Interesting that the Haskell version is the most concise and also has as much or more typing than the rest!
- alipang 13y agoYeah this mysterious "typed haskell" thing seems to imply that the other version doesn't have types, while of course they are inferred.
- bjz_ 13y agoThe source he posted on Github calls it 'annotated'[1]. I'm guessing it was just a poor choice of word. [1] https://github.com/logaan/typed-game-of-life/blob/master/src/annotated_game_of_life.hs https://github.com/logaan/typed-game-of-life/blob/master/src...
- logan-campbell 13y agoYou're correct. Annotated was just too many characters to fit inside the columns I used for the thumbnail view. I'm not so proficient a developer that I could write any amount of Haskell code without being acutely aware of its statically typed nature.
- chongli 13y agoIn Haskell it's generally considered bad form to omit type annotations for your top-level functions. There is even a compiler warning for this sort of thing. Thankfully, the Haskell plugins for good editors (vim or emacs) provide hotkeys to automatically insert an inferred type annotation for a function you specify.
- tel 13y agoIt's naked-looking without them. Valid, but all the documentation is hidden.