4 ms·
> The problem is especially bad if multiple people are coding around maps without any enforced structure or validation on creation. Using a functional style do
by weavejester 16y ago
> The problem is especially bad if multiple people are coding around maps without any enforced structure or validation on creation.
Using a functional style doesn't mean you can't use constructors, and constructors don't necessarily mean you have to use objects.
- djacobs 16y agoSure, you can have all of the things I listed in FP with some effort. My point is just that OO seems to be good at bringing them all together in a really useful way. (And that way isn't inconsistent with FP.) I aim to strike a balance, to use each style where it is strongest.
- weavejester 16y agoAh, I see your point. But... whilst I can see that a lot of the functionality objects provide is useful, there is also a lot of functionality one might not necessarily need in all instances.