Y
Hacker News
new
|
ask
|
show
|
jobs
by
tadfisher
786 days ago
That's a weird objection, because Typescript classes are literally Javascript classes[1].
[1]:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
1 comments
afavour
786 days ago
There was plenty of outrage when classes were added to JS. “JS uses prototypal inheritance, not OOP!”
link
krapp
786 days ago
I'm still a bit cranky about that, but because objects should be good enough for anyone. They aren't even really classes anyway.
link
Aeolun
786 days ago
If it walks like a duck, and quacks like a duck, for all intents and purposes, it is a duck.
link