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: Anonymous 2005-04-17 16:36

Seriously, you can store blocks in variables and give multiple blocks to a function. There is no real difference with lambda functions in functionnal programming, I guess the creator just wanted to be original or try a different syntax.

>>8
lambda, procs and Blocks are the same thing in Ruby!

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