Hot take: JavaScript transpiled features should be as spec compliant as possible, even if it ends up being 10x slower. Ship the slow output to older browsers. Using spec incompliant transforms limits your ability to turn them off safely later.
-
-
I also have anecdotal evidence at FB. We have custom polyfills that are a subset of semantics and we're struggling to turn them off. Stuff that might not have even been intentional. For example, people consuming something that should be an iterator as an array.
-
If you call it a “polyfill” or a “shim” (or any made up nonsense word that implies these) then it must be 100% compliant. Else it’s a “sham”, or, it’s a function full of lies. If you want to make your own decisions about what functionality you need, JS has “functions” for that.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 