3 ms·
They're real enough? Smells like a class, tastes like a class... I think it's unfortunate that classes now have more syntax conveniences than that for building
by nielsbot 8y ago
They're real enough? Smells like a class, tastes like a class...
I think it's unfortunate that classes now have more syntax conveniences than that for building prototypal object hierarchies. I find `Object.create(...)` and `Object.assign(...)` unclear to read and clunky.
As another aside: is there any reason to bother with JS constructors and "functional" OOP? I just use `Object.[create|assign](...)`, done.