r/programming • u/stesch • Aug 30 '08
Tour De Babel -- Rant about programming languages (at Amazon)
http://steve.yegge.googlepages.com/tour-de-babel
13
Upvotes
r/programming • u/stesch • Aug 30 '08
View all comments
Show parent comment
2
u/Niten Aug 31 '08 edited Aug 31 '08
The difference is mostly syntactic sugar. Python doesn't have multi-line lambdas, so you have to name your function before you pass it in to
file_funct:In Ruby, on the other hand, you can send
file_methodan anonymous block, rather than define and then pass it a named method:This makes things a bit cleaner, especially since Ruby has such nice syntax for passing anonymous blocks to methods. But it doesn't really change what you are able to accomplish in your code.