Python and Ruby

tanix tanix at mongo.net
Sat Jan 30 11:58:34 EST 2010


In article <pan.2010.01.30.16.43.18.172000 at nowhere.com>, Nobody <nobody at nowhere.com> wrote:
>On Wed, 27 Jan 2010 15:29:05 -0800, Jonathan Gardner wrote:
>
>> There's a lot of "magic" in Ruby as well. For instance, function calls are
>> made without parentheses.
>
>That's also true for most functional languages, e.g. Haskell and ML, as
>well as e.g. Tcl and most shells. Why require "f(x)" or "(f x)" if "f x"
>will suffice?
>
>> Python is much, much cleaner. I don't know how anyone can honestly say
>> Ruby is cleaner than Python.
>
>I'm not familiar with Ruby, but most languages are cleaner than Python
>once you get beyond the "10-minute introduction" stage.

I'd have to agree. The only ones that beat Python in that department
are Javascript and PHP. Plus CSS and HTML if you can call those languages.

The very idea of using a number of blanks to identify your block level
is as insane as it gets. First of all, combinations of blanks and tabs,
depending on how your ide is setup to expand tabs, may get you bugs,
you'd never imagine in your wild dreams.

Braces is the most reliable way to identify blocks.

Sane compilers ignore blanks altogether.



--
Programmer's Goldmine collections:

http://preciseinfo.org

Tens of thousands of code examples and expert discussions on
C++, MFC, VC, ATL, STL, templates, Java, Python, Javascript, PHP,
organized by major topics of language, tools, methods, techniques.

All collections are fully searchable down to specific chapter.



More information about the Python-list mailing list