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

I want this instead #80

Open
jimmywarting opened this issue Dec 9, 2022 · 2 comments
Open

I want this instead #80

jimmywarting opened this issue Dec 9, 2022 · 2 comments

Comments

@jimmywarting
Copy link

proposal-type-annotations just reached stage 1.
I do not like this at all. it don't give any befit to the browsers what so ever.

I like this proposal even better. to bad it haven't reached any stage yet... 😞
i fear that this optional type annotations will be in conflict with your proposal.

@sirisian
Copy link
Owner

sirisian commented Dec 9, 2022

Any proposal can get to Stage 1 with a TC39 member. This is why so many proposals sit at stage 1 for years and go nowhere.

The bigger issue going forward is getting all the TC39 members to agree to having runtime types.

i fear that this optional type annotations will be in conflict with your proposal.

Yes, the syntax would need to change in this proposal. It's the only proposal I don't currently take into consideration when making changes to support. With every other current proposal there's no conflicts.

I have hoped that Type Annotations would use :: syntax for their proposal in order to not conflict with this one. I haven't brought this up to them though. (Though others have mentioned it, so it seems they're aware this is an option).

@jimmywarting
Copy link
Author

i feel like it would benefit the language more to have real type system, like as if you want to allocate a number that can only be a positive int16 for instance, it would allocate so much less memory if i could be more explicit about my types.

Heck it would maybe even be able to compile this to something more low level assembly code then.

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