Skip to content

Comment on Haskell style list comprehensions in Rubyparent

Comments

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...

It's awesomely cool, but it also defines a global method_missing, which puts you in for a world of pain before even considering the overloaded operators.

It's one of those hacks that are cute and great to play with and awesome proof of concept for new features, but if I saw it in a production codebase, I'd want to strangle someone.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.