3 ms·
> I barely know JS That much is clear. Your comment is essentially based on hearsay and is far from accurate. You really should learn Javascript, and listen t
by calinet6 12y ago
> I barely know JS
That much is clear. Your comment is essentially based on hearsay and is far from accurate.
You really should learn Javascript, and listen to the original article.
The "two pillars" of prototypical inheritance and lambdas with closures are actually two extremely powerful foundations that are rarely found together in any language, let alone a language with such ubiquity.
It is actually a much better language than it gets credit for. If you don't like the prototypical inheritance; you may safely ignore it and treat JS as a first-class functional language. If you don't like first-class functions with closures, then treat JS as a beautiful object-oriented language. It is so flexible it's almost absurd.
Are there gotchas? Sure, perhaps more than would be ideal, and in order to have both of these pillars in the same language, some odd stuff does pop up. But if you actually use it for a while, you'll come to realize the balance is in its favor.