Hacker News new | past | comments | ask | show | jobs | submit login

I was responding to "was more first class in popular languages". I know about python's functools lib and its memoisation decorator. Point was, if you didn't have it and wanted it, it's easy; no need for the language to provide it.



Don't let this guy see math.tau.


This guy sees your point and this guy does indeed wonder why it's there when 2*Pi will do. But if it's about python the answer is simple - unlike many other languages python does fold constants, but does't fold expressions using variables even if the variable is never changed so there's an unavoidable cost unless you write out the value literally, or have it as a constant.

Or - in PEP 628 - it's just a bit of a larf https://peps.python.org/pep-0628/

Perhaps this guy should grow a sense of humour.


> Perhaps this guy should grow a sense of humour.

Agreed!




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: