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

Limited scope #3

Closed
branc116 opened this issue Apr 4, 2018 · 4 comments
Closed

Limited scope #3

branc116 opened this issue Apr 4, 2018 · 4 comments

Comments

@branc116
Copy link

branc116 commented Apr 4, 2018

This is awesome!

Can you pls make the same lib for number 1?

@perrutquist
Copy link
Owner

perrutquist commented Apr 5, 2018

Thanks!

Good point about the number 1. Also, Inf and NaN should probably be useful as singular datatypes. Maybe the way forward would be to create a parametric datatype to represent any value, and make Zero a special case of this type.

@perrutquist
Copy link
Owner

There is now support for the number one in the "ones" branch. I'll still make a more general implementation when I get the time.

@branc116
Copy link
Author

Good job! I'm happy with the implementation, just what I wanted!

Thank you!

You can close it now, if you want :)

@perrutquist
Copy link
Owner

Now, there is StaticNumbers which does much of what this package does, but for any number. StaticNumbers does not replace Zeros entirely, though, as it does not have all the methods (for functions like sin, tan, etc.) that pass Zero() (i.e. `StaticInteger{false}()) unchanged.

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