4 ms·
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 Py
by lincolnq 18y ago
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.
- nuclear_eclipse 18y ago> In python, it's hard to fuck it up: after a colon, you always newline and indent. But what about: if True: print "Yep" ;)
- whatusername 18y agoGet with the program: if True: print("Yep")
- ljlolel 18y agoDon't do that: http://www.python.org/dev/peps/pep-0008/ 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?)
- nuclear_eclipse 18y agoCompletely agreed; I was just pointing it out.