3 ms·
Object-oriented programming isn’t dead but it’s still evolving. One facet that is trending is immutability. Objects can only be constructed with their full stat
by cmwelsh 6y ago
Object-oriented programming isn’t dead but it’s still evolving. One facet that is trending is immutability. Objects can only be constructed with their full state provided. It’s the best of both worlds. However, moment is from an earlier zeitgeist - it has mutable objects. Use an immutable object library.