3 ms·
The joke is that he implies the languages' FP orentation causes them to have clunky ways to define classes. Ruby is a good counter to that argument. It has on
by binarykeats 19y ago
The joke is that he implies the languages' FP orentation causes them to have clunky ways to define classes. Ruby is a good counter to that argument. It has one of the cleanest class-defining syntaxes out there. And you can actually write your own functions that behave like "attr_accessor", making your class definitions even more readable.
Guess how you do it? A combination of metaprogramming and closures.