-
Notifications
You must be signed in to change notification settings - Fork 34
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
Removal of Natural #98
Comments
I'malso Ok to drop it and replace by annotations or interceptors in the future. |
I don't feel strongly either way. I like the concept of Natural, as an equivalent of C's If I would keep it I would allow users to subtract Natural numbers and guard it with a check, so it'd be slower than other math ops but not that bad. I wouldn't lose sleep over getting rid of Natural either. |
Then in that case I'm inclined to go ahead with the removal of |
I have to admit my background in C is limited so I've never lived in a world of true unsigned integers. But from what the thread reads
On a side note, should we have a positive annotation that can be used by the compiler as a hint at some stage. I'm tempted to say no unless we are ok to enforce that a
and that might be too cumbersome |
|
Long live Natural! |
So we're considering removing the
Natural
class and usingInteger
for sequence indices.Subtractable
would also be removed. See the discussion in this thread:http://groups.google.com/group/ceylon-dev/browse_thread/thread/82daa1e0750f133a?hl=en
I've already done most of the work needed for this in branches of the ceylon/ceylon-spec and ceylon/ceylon.language projects. Tako is working on a branch of ceylon/ceylon-compiler (UPDATE: he finished that work). So we should be able to roll this change into M1.
But first I need to get the OK from everyone else here that this is the right thing to do, and that we should go ahead and merge the branches.
Feedback?
The text was updated successfully, but these errors were encountered: