tc39 / proposal-function-once

A TC39 proposal for an Function.prototype.once method in the JavaScript language.
BSD 3-Clause "New" or "Revised" License
45 stars 3 forks source link

Goal priorities: First principles versus userland precedent #9

Open js-choi opened 2 years ago

js-choi commented 2 years ago

A common dilemma that has been recurring in #2, #3, #4, and #5 is which is more important in design:

@ljharb, @jridgewell

ljharb commented 2 years ago

I think that in language design, we should always come up with our most ideal solution first - and then, compare/contrast it to what other languages, and userland, are doing. That doesn't mean we should ignore precedent, but it does mean every sacrifice made to match precedent should be done intentionally and carefully.