by stevemk14ebr · 8y ago · 0 comments
Question: "Does this mean that today I can create a new (non existing in the native spec) method, add it in the native object, using it in a certain percentage of websites and force TC39 to change it's future implementation thus essentially hijacking the language evolution process?"
Response: "What that means is that yes, you can create a new nonexistent method, use it in a certain percentage of websites, and actively destroy any proposal trying to add that method name. I hope you don't do that, because that would be pretty sociopathic, but that's absolutely how the process works, and will continue to work for the foreseeable future.
We've made tons of progress with this constraint, and we'll continue to make progress with it."
That does not seem like a sensible constraint for language design. Just say the method name is reserved for goodness sake, you are the ONLY people who get to exercise that power.
If they try and declare a language addition that breaks a non-trivial number of websites, browsers will refuse to implement it. Anything this committee specs out only matters if it's actually implemented. Browsers care very strongly about not breaking websites, so the language committee must as well.
It becomes bad when the library checks for an existing implementation of that function, and then assumes compatible semantics
If enough people establish convention - why break it? A proposal that goes against convention is already under such scrutiny. I don't believe "smoosh" in this case is any better than "flatten" but I agree with the motivation and that's far more important than one function name.