4 ms·
Classes is a semantic way of organizing your zillion of higher order functions, that would otherwise be just floating around. Beans is the way to build higher
by lolive 6y ago
Classes is a semantic way of organizing your zillion of higher order functions, that would otherwise be just floating around.
Beans is the way to build higher order data.
Mixing them with care is the art of programming.
- Joker_vD 6y agoGod 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.