re: My love hate relationship with Python VIEW POST


I was expecting to find something like "I hate managing conflicting package dependencies for large projects" or "I hate some aspects of duck-typing" etc... Then I read a bit and found a rant about braces, or a lack of! If that's something to "hate" it's a new one for me! Indentation is fine, setup your editor (for all languages to replace tab with 4x space, strip trailing whitespace and you're sorted).

I don't get what's so bad about

def foo():


def foo()

The only thing (in regards to Python function syntax) which I would consider ranting about is abuse of lambda (considering lambda==annoymous function, why would anyone name one!), i.e.

foo = lambda x:print(f"value of x is {x}")
code of conduct - report abuse