sirisian/ecmascript-types

Compatibility with typeof of ecmascript

cesarchefinho opened this issue · 3 comments

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

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.

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

ah, yeah that makes sense. Sounds good then.