5 ms·
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 hav
by zasdffaa 4y ago
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.
- robertlagrant 4y agoDon't let this guy see math.tau.
- zasdffaa 4y agoThis 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/ https://peps.python.org/pep-0628/ Perhaps this guy should grow a sense of humour.
- robertlagrant 4y ago> Perhaps this guy should grow a sense of humour. Agreed!