3 ms·
I tend to have quite a lot of objects that are basically what I'd use complex closures for in a lispy language - i.e. a bunch of read only attributes, then some
by mst 11y ago
I tend to have quite a lot of objects that are basically what I'd use complex closures for in a lispy language - i.e. a bunch of read only attributes, then some methods that use those as configuration/etc.
That's basically a 'bigger hammer' version of (2) though - mutable state is, as ever, the enemy.