Live data from Hacker News

Haskell style list comprehensions in Ruby

gist.github.com

1–10 of 29 posts

Re: Haskell style list comprehensions in Ruby

#6
post #4

This has no business being at the top of HN.

Why not? Seems pretty damn cool to me. Edit: didn't realise you were the author :)

As its creator, I would certainly agree. Still, I'd feel bad if some poor soul considered it anything but an interesting demonstration of Ruby's capabilities.

Re: Haskell style list comprehensions in Ruby

#7
post #4

Earlier quoted context omitted.

Why not? Seems pretty damn cool to me. Edit: didn't realise you were the author :)

As its creator, I would certainly agree. Still, I'd feel bad if some poor soul considered it anything but an interesting demonstration of Ruby's capabilities.

Btw, it would be great if you add some comments there. What are the key (all of it?) parts? etc...

Re: Haskell style list comprehensions in Ruby

#10

Cue to Haskell people lamenting the fact that this is an abomination and not by any means "Haskell-style list comprehensions". Still very nice though.

Haskell person here... I personally find Haskell list comprehensions to be ridiculously ugly, and are an unnecessary bit of syntactic sugar over the List Monad.
Post reply on HN