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

Would it be easy/possible to have a NonNaN tag type with taghiro? #5

Open
Wizek opened this issue Jan 26, 2020 · 0 comments
Open

Would it be easy/possible to have a NonNaN tag type with taghiro? #5

Wizek opened this issue Jan 26, 2020 · 0 comments

Comments

@Wizek
Copy link

Wizek commented Jan 26, 2020

I've heard about this library over here: microsoft/TypeScript#4895 (comment)

...and begun to wonder, would it be easy/possible to have a NonNaN tag type with taghiro? If so, then maybe already this tool could help me out. I have some relatively involved calculations in TypeScript, and some NaNs inexplicably seep in from one place or another. Would be nice to disallow them on the type level and hence find & eliminate their source.

It seems the scala library (called 'refined') that this library is said to have been inspired by does appear to have NonNaN built in! Take a look here.

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

1 participant