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

One Num Typeclass to Rule Them All #130

Open
CodaFi opened this issue Nov 19, 2014 · 2 comments
Open

One Num Typeclass to Rule Them All #130

CodaFi opened this issue Nov 19, 2014 · 2 comments

Comments

@CodaFi
Copy link
Member

CodaFi commented Nov 19, 2014

Swift has an... interesting approach to numeric protocols. It's a real helter-skelter mix of some that add operations, make things integer-y, make things floating-point-y, signal access times for collections-y, etc. What it doesn't do is actually define a good hierarchy of the values their numeric structures can represent. I think we can fix that.

The NInt et al machinery can be collapsed and reappropriated for arbitrary precision arithmetic (somehow. GMP, OpenSSL, CommonCrypto?). We can define proper numeric type classes and conformances for swift types and get real numeric constraints going for once.

@CodaFi
Copy link
Member Author

CodaFi commented Jan 29, 2015

Bump #167.

@CodaFi
Copy link
Member Author

CodaFi commented Aug 19, 2015

Almost fixed by #231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant