Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example implementation using Typescript #48

Open
Arlen22 opened this issue Sep 19, 2024 · 5 comments
Open

Example implementation using Typescript #48

Arlen22 opened this issue Sep 19, 2024 · 5 comments

Comments

@Arlen22
Copy link
Collaborator

Arlen22 commented Sep 19, 2024

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.

@Arlen22

This comment has been minimized.

@Arlen22

This comment has been minimized.

@arthurfiorette

This comment has been minimized.

@Arlen22

This comment has been minimized.

@Arlen22

This comment has been minimized.

@Arlen22 Arlen22 changed the title Example try expression in Typescript Example implementation using Typescript Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants