by carterschonwald · 17y ago · 0 comments
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.
But what about:
if True: print "Yep"
;)if True: print("Yep")
Some features of Python are only really meant to be used at interactive prompts, like import STAR ( I can't write star?)
virtual const std::string& getCommand() const throw() { return m_command ; }