News for hackers. Stuff that matters.
Re:Python vs Clojure by jacquesm on Wednesday October 14, 2009 @01:37PM (#881756)
Interesting how your variable example is pretty much straight against the python styleguide:

http://www.python.org/dev/peps/pep-0008/

I'd do it just like you do though.

I find it visually harder to fish those equals signs out of the 'noise' otherwise.

Re:Python vs Clojure by gaius on Thursday October 15, 2009 @10:52AM (#883477)
In the wild, you're more likely to find Python that looks like:

    longvariable, x = 1, 2
However this won't work:

    longvariable, x = 1, foo(longvariable)
So I like to keep things uniform regardless of the rvalue. Also violating the style guide, I like

    longvariable = "hello" # some description of longvariable
    x            = 1       # some descrption of x