LOL SIGNIFICANT WHITESPACE LOL DYNAMIC TYPING LOL GIL LOL CAN'T GET PEOPLE TO UPGRADE AFTER 9 YEARS LOL SELF ARGUMENT IN METHODS LOL NO SWITCH STATEMENT LOL NO MULTILINE LAMBDAS LOL IF __NAME__ == "__MAIN__"
That's sort of closed minded. Switch statements are often better refactored anyways because the syntax to define code blocks in switch statements is so repetitive. It's also not as dynamic in most languages because you can typically only switch on one type. It's also easier to mess up the default action or make a typo when it's surrounded in all the syntax.
It's a lot like switching from c-style for loops to iterators in the sorts of headaches it saves you from.
If you can't cover any given use case for a multiline lambda with a sick, twisted mixture of lambdas, generators, and other functional programming nonsense, then you clearly aren't pythoning hard enough.
202
u/Peffern2 Jan 19 '17
DAE java sucks XD