How much work is it to make a Stage 0 proposal for TC39?
I'd really like to get some discussion on Dart-inspred Cascade notation - A sort of operator (..) that works like "." expect that it returns the left hand side object - that would allow having jQuery-like, fluent APIs for basically every object (even existing, ancient APIs), without creating the overhead that a fluent API wrapper or even a whole library would, or forcing people to use return this in every method instead of returning something potentially useful.
Basically, it's supposed to allow things like
new XMLHttpRequest()..open('GET', '/test.json')..onload = () => console.log('Done!')..send();
1
u/Pesthuf Feb 20 '18
How much work is it to make a Stage 0 proposal for TC39?
I'd really like to get some discussion on Dart-inspred Cascade notation - A sort of operator (..) that works like "." expect that it returns the left hand side object - that would allow having jQuery-like, fluent APIs for basically every object (even existing, ancient APIs), without creating the overhead that a fluent API wrapper or even a whole library would, or forcing people to use
return thisin every method instead of returning something potentially useful.Basically, it's supposed to allow things like
or
Do you need to already write parser rules and everything for a stage 0 strawman? Are proposals welcome at all?