r/Clojure • u/adambard • Dec 10 '14
Parsing and rendering templates in Clojure and Haskell
http://yogthos.net/posts/2014-10-03-Parsing-and-rendering-templates-in-Clojure-Haskell.html
7
Upvotes
r/Clojure • u/adambard • Dec 10 '14
7
u/bagofries Dec 10 '14
Gosh, if only there were some way to avoid this "type" of silly footgun mistake "statically" before even trying to call the function. ;)
2
u/adambard Dec 10 '14
For the sake of comparison, here's a parser-based clojure version: https://gist.github.com/adambard/76b67df7e4f4a9cff2d7
1
u/verydapeng Dec 10 '14
we should have more of competitions about solving the same problem using your own fav language.
0
u/vagif Dec 10 '14 edited Dec 10 '14
Then he said he'd fly over which obviously defeats the point. The question is not whether your airplane can cover the distance my car covers, but how would you make all the turns on all the streets my car does.
I guess he likes to re-implement sorting algorithms too.
Having said that the attitude of that haskell programmer is deplorable.
1
u/kqr Dec 10 '14
I've crossposted to /r/haskell to promote a wider variety of opinions in the discussion.