|
|
|
|
|
by Liron
2449 days ago
|
|
Ya, here's why I think "make your programs shorter" is a good criterion. If a language compresses conceivably-desirable programs to a smaller AST size, then for all N, a higher fraction of size-N ASTs (compared to other languages) represent conceivably-desirable programs. So "make your programs shorter" also implies "make bad behaviors impossible or extra-verbose to write". For example, failing to free your memory is bad code, and it's impossible(ish) to write in managed-memory languages. |
|
It reminds me "The Zen of Python" "There should be one — and preferably only one — obvious way to do it"
https://jeffknupp.com/blog/2018/10/11/write-better-python-fu...
https://towardsdatascience.com/how-to-be-pythonic-and-why-yo...