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

Python vs Ruby

Name: Anonymous 2011-09-25 10:21

What is better, Python or Ruby?

Name: Anonymous 2011-09-25 13:05

>>11
what I mean is that both are very concerned with syntax.
Ruby is all about letting you use dot-notation for stuff in ways that don't actually help, but "look good" to some people.

I mean, 5.times? Why not (times 5 (lambda ...))? Because it doesn't read as much like natural language. This is the primary reason.

And I would argue that Python's main goal is syntax. It doesn't include the ability to write large lambdas because of a syntax concern This has caused it to implement the list comprehension syntax. It also doesn't have what most people would consider proper closures because the syntax of having to call out what scope a variable lives in is not considered pretty, so instead they add the "nonlocal" keyword and blah blah

you get the picture. Python sacrifices semantic elegance to shallow syntactic "beauty" at the drop of a semicolon.

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