Post

It's nice but I'm surprised by > That is a very natural way to write JavaScript. For normal application code, I wouldn't expect it to be written any other way. Maybe I'm biased, but that looks like a pretty unusual way to write JS exactly because it doesn't store methods on the prototype...

On the same note, the solution doesn't look like the obvious way to do this either - it's replicating what `class` does, and classes can be optimised even further by the engine not to mention readability benefits.

No replies yet.