News for hackers. Stuff that matters.
Re:Typed Clojure Game of Life by appamatto on Thursday October 03, 2013 @12:37PM (#6490102)
Interesting that the Haskell version is the most concise and also has as much or more typing than the rest!
Re:Typed Clojure Game of Life by chongli on Thursday October 03, 2013 @01:01PM (#6490282)
In 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.
Re:Typed Clojure Game of Life by tel on Friday October 04, 2013 @08:44AM (#6494973)
It's naked-looking without them. Valid, but all the documentation is hidden.
Re:Typed Clojure Game of Life by alipang on Thursday October 03, 2013 @12:42PM (#6490141)
Yeah this mysterious "typed haskell" thing seems to imply that the other version doesn't have types, while of course they are inferred.
Re:Typed Clojure Game of Life by bjz_ on Thursday October 03, 2013 @12:45PM (#6490170)
The 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...

Re:Typed Clojure Game of Life by logan-campbell on Thursday October 03, 2013 @08:35PM (#6493063)
You'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.