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

Not much can be done #12

Closed
wants to merge 1 commit into from
Closed

Conversation

amrdraz
Copy link

@amrdraz amrdraz commented Oct 3, 2018

So generally speaking other than using the slightly shorter array on the Bits and BinaryBits types

Not much can be done regarding the unsigned int types.
Your salvation may come with this proposal should the day come microsoft/TypeScript#15480

But Typescript will probably not support base uint[n] types as this discussion ended
microsoft/TypeScript#4639
essentially JS is expecting BigInt and other types may be added someday and so no extra primitives will be added until T39 adds them

on a side note this regex proposal should it get implemented would be interesting
microsoft/TypeScript#6579

Feel free to obviously reject this change since the request is a stylistic one

So generally speaking other than using the slightly shorter array on the Bits and BinaryBits types

Not much can be done regarding the unsigned int types.
Your salvation may come with this proposal should the day come microsoft/TypeScript#15480

But Typescript will probably not support base uintx types as this discussion ended 
microsoft/TypeScript#4639
essentially JS is expecting BigInt and other types may be added someday and so no extra primitives will be added until T39 adds them

on a side note this regex proposal should it get implemented would be interesting 
microsoft/TypeScript#6579
@codecov
Copy link

codecov bot commented Oct 3, 2018

Codecov Report

Merging #12 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #12   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          43     43           
  Lines         402    402           
  Branches       49     49           
=====================================
  Hits          402    402

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c5b040...973f5d5. Read the comment docs.

@FlorianWendelborn
Copy link
Owner

Hi, @amrdraz, thank you for investigating this issue. It’s really odd that typescript has such a basic limitation. I get that waiting for TC39 makes sense from a compatibility standpoint though and haven’t heard that reason before reading this issue.

I’ll close the PR, since I plan to change to ReadonlyArray in the future, but I didn’t know that the Bit[] syntax is supported in TypeScript, so that might be useful knowledge some day. 🙂

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

Successfully merging this pull request may close these issues.

2 participants