Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python vs Ruby holy war thread

Name: Christy McJesus !DcbLlAZi7U 2005-04-12 13:11

Last week I learned Python. It's not perfect but it's pretty damn cool.
This week I'm starting on Ruby. I've just encountered blocks and I would approve if someone would answer this: are blocks merely an ugly kludge because the author did not know about lambda expressions, or can they do something lambdas can't?

Name: Christy McJesus !DcbLlAZi7U 2005-04-18 8:49

>>15
Please learn Lisp.

>>14
I know this, it just seems weird, and not in a good way. It's like matz was too object obsessed to allow for functions, as opposed to methods, and invented the idea of blocks to serve the exact same purpose except with a weird syntax and they're not called functions. Wrapping a block in a lambda/proc lets you call it just like a function, so why not make it a function in the first place?

Seriously it's just a little niggle, but you notice such things more when the rest of the language is so well designed.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List