3 ms·
>> In FP, nearly everything you like about OO exists Is there an FP pattern that's analogous to an immutable object? The reason I like objects has nothing to d
by nlawalker 9y ago
>> In FP, nearly everything you like about OO exists
Is there an FP pattern that's analogous to an immutable object? The reason I like objects has nothing to do with mutability or state, it's the convenience of organizing a bunch of related functionality into a named class. When I instantiate it, I effectively get a named value through which I can access a bunch of functions that have all been closed over the same immutable values.