Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Python, it's even worse, since there's no braces and not returning anything implicitly returns None.


I always take this as Python's way of strongly discouraging deeply nested and overly long functions... ( I realise this might be Stockholm syndrome...)


Mypy fixes the second problem, at least.


Python at least has if ... elif ... else to deal with it.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: