by blobs · 7y ago · 0 comments
Wow, that took a while! For already about 9 years this feature is in Coffeescript. And indeed it must be the star of the show because once you're used to that you almost can't live without it. Why did JS/ESxx never copied that idea?
edit: just read it has just been added to JS some days ago as well..
Changes to proposed features can still be made at stage 3 if critical issues come up. Otherwise, once implementors have sufficient experience with them (and tests & multiple implementations exist) the proposals will be eligible to move to stage 4, after which they'll be able to be included as part of the next ECMAScript spec.
Both proposals are progressing through the process very smoothly, but I wouldn't rely on them for anything critical just yet.
In this case, members of the TS team were actually championing these ES proposals :)
All of the above need method chaining, though: