2 ms·
Much smaller than you'd hope. HN is very much mainstream these days. I asked how one would represent a pure function in a language that didn't support pureness/
by karmakaze 4y ago
Much smaller than you'd hope. HN is very much mainstream these days. I asked how one would represent a pure function in a language that didn't support pureness/immutability and got `fn f(a, b) { return a + b; }` entirely missing the point.
- fvdessen 4y agowhat was the point ?
- ggm 4y agoPerhaps the point was that representation syntactically of something which can't actually be promised by the engine underneath is a false equivalence to a language which does support it? Coding to yield() on a framework which doesn't support tail recursion might (for example) loop to infinity. Coding to immutability which cannot be guaranteed, means you may return false results.