3 ms·
God forbid the 'sin' function would be just floating around, outside of a static 'Math' class. Or 'reduce', for that matter—obviously you need a special 'Reduce
by Joker_vD 6y ago
God forbid the 'sin' function would be just floating around, outside of a static 'Math' class. Or 'reduce', for that matter—obviously you need a special 'Reducer' class for that.
That reminds me of Steve Yegge's "Execution in the Kingdom of Nouns", actually.
- pjmlp 6y agoClasses are extensible modules. Although some people seem to like pre-history languages without modules that require workarounds like using prefixes everywhere.
- vblmark 6y agoA math module or namespace would be nice. Also for C headers I'd like to do "from math.h import inf" to resolve conflicts with <cmath> and c++11 with non-compliant implementations.