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

Compatibility with typeof of ecmascript #60

Open
cesarchefinho opened this issue Apr 7, 2021 · 3 comments
Open

Compatibility with typeof of ecmascript #60

cesarchefinho opened this issue Apr 7, 2021 · 3 comments

Comments

@cesarchefinho
Copy link

Make typeof returns number, object, string and etc

Typeof uint32 will return number

And make a new word to check types

Like

statictypeof uint32 will return uint32

@sirisian
Copy link
Owner

sirisian commented Apr 8, 2021

I updated the README, but at the same time I wonder if this is ideal. Consider how BigInt works. It returns "bigint" and not "object". I think I'd need to speak to one of the tc39 editors to understand their direction.

@cesarchefinho
Copy link
Author

The problem is that uint32 999 is a number for current ecmascript and previous code that expect number will be broken.

@sirisian
Copy link
Owner

sirisian commented Apr 8, 2021

ah, yeah that makes sense. Sounds good then.

@sirisian sirisian changed the title Compatybility with typeof of ecmascript Compatibility with typeof of ecmascript Apr 12, 2021
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