Better HN
topnewbestaskshowjobs
Log inSign up

wqtrez

3 karma · joined Jul 8, 2024 (2y ago) · 2 submissions

Submissions

comment 2y ago · link · parent

The Saint-Exupéry quote applies to Lisp, may in some manner apply to Python 2.7, but certainly not to Python 3.12.

Many people here argue that braces do provide some structure that helps in understanding and navigating the program. Python files over 100 lines with a lot of if-statements become syntactically unreadable.

So taking them away does not help.

Generally, minimalism (except for the Lisp-style one) is not always good. Python is called executable pseudo-code. Do academics use it to specify algorithms?

No, most still use some form of Pascal/Algol style syntax, which conveys the meaning much better.

comment 2y ago · link · parent

That looks very clean, though the deviation from OCaml takes a minute to get used to.