logoalt Hacker News

mark_l_watson • 11/20/2024 • 2 replies • view on HN

Apologies for being off topic, but after reading the implementation code, I was amazed at how short it is!

I have never been a huge fan of Python (Lisp person) but I really appreciate how concise Python can be, and the dynamic nature of Python allows the nice query syntax.


Replies

gabrielsroka • 11/20/2024

> Python can be seen as a dialect of Lisp

- Peter Norvig

https://www.norvig.com/python-lisp.html

➕ show 1 reply
pama • 11/20/2024

Agreed on conciseness of the implementation. It is short and clear despite having a Max and Min that share all except one character in 30 lines of code.