News for hackers. Stuff that matters.
Re:C-style vs. Python-style syntax: which one would you pref... by lincolnq on Sunday December 14, 2008 @02:53PM (#397589)
I've found that I really don't like this, aesthetically (mixing nesting styles in code looks bad)

Also, whitespace based indentation works in Python because Python statements tend to be fairly short. (The python indentation rules are easily understood.) Haskell layout has been somewhat more difficult to understand (at least for me). I have been writing Haskell code and usually it works, but there have been problems due to failure to indent when I should'v, which were incredibly confusing to debug.

In python, it's hard to fuck it up: after a colon, you always newline and indent.

Re:C-style vs. Python-style syntax: which one would you pref... by nuclear_eclipse on Sunday December 14, 2008 @03:21PM (#397605)
> In python, it's hard to fuck it up: after a colon, you always newline and indent.

But what about:

    if True: print "Yep"
;)
Re:C-style vs. Python-style syntax: which one would you pref... by whatusername on Sunday December 14, 2008 @06:06PM (#397743)
Get with the program:

if True: print("Yep")

Re:C-style vs. Python-style syntax: which one would you pref... by ljlolel on Sunday December 14, 2008 @06:07PM (#397744)
Don't do that: http://www.python.org/dev/peps/pep-0008/

Some features of Python are only really meant to be used at interactive prompts, like import STAR ( I can't write star?)

Re:C-style vs. Python-style syntax: which one would you pref... by nuclear_eclipse on Sunday December 14, 2008 @06:20PM (#397752)
Completely agreed; I was just pointing it out.