In order to give a better example of how this operator would work, I've implemented it in TypeScript.
You can download the typescript-*.tar.gz file from https://github.com/Arlen22/TypeScript/releases and then npm install the file in your project to use it.
If you're using VSCode you can change which version of TypeScript it uses for intellisense by clicking on TypeScript in the status bar.
It should compile to working JavaScript. Check the releases page for known issues.
I'm NOT a TypeScript maintainer. Do NOT use this example for production code.
Notes
Branch: https://github.com/Arlen22/TypeScript/tree/arlen22-0.2
I implemented it to have the same precedence as the yield operator.
In order to give a better example of how this operator would work, I've implemented it in TypeScript.
You can download the
typescript-*.tar.gzfile from https://github.com/Arlen22/TypeScript/releases and thennpm installthe file in your project to use it.If you're using VSCode you can change which version of TypeScript it uses for intellisense by clicking on TypeScript in the status bar.
It should compile to working JavaScript. Check the releases page for known issues.
I'm NOT a TypeScript maintainer. Do NOT use this example for production code.
Notes
Branch: https://github.com/Arlen22/TypeScript/tree/arlen22-0.2
I implemented it to have the same precedence as the yield operator.