-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Revert "Fixes #12187" #12447
Revert "Fixes #12187" #12447
Conversation
To be honest, I don't quite see the issue here. The packages have been fixed, this change has caused no real issues. The ecosystem has adapted to the breakage and now we revert this? |
It does break wrappers not covered by "important packages" and also the change should have been something like: type
csize {.deprecated: "use csize_t instead".}
csize_t = <correct definition here>
Also, the fact that you had to add overloads that do the same "lie" about signedness means that the old |
Well those overloads were added deprecated, meaning that it was planned to remove them after some time. |
I think it is a bad idea to lie to the developer that |
Here, this compiles with your revert applied proc main() =
var x: csize = -1
var y: csize = 123
echo x, " < ", y, ": ", x < y
main() output:
Please don't tell me this is acceptable expected behavior. |
3 replies, all managed to miss the point entirely. Good job.
type
csize {.deprecated: "use csize_t instead".}
csize_t = <correct definition here> |
I guess we are all stupid then. It is all our fault.
That is not what this PR does either. |
An explanation would really help. I don't see why that is a step forward either. So far the argument for keeping this bug (to me that's a bug) is that running into problems has a low probability, but doesn't that make it even more ugly? |
Reverted because it broke code. I dunno what's so hard to understand about it. |
I support a smoother deprecation process, like the one Araq suggested, because the abrupt change in #12321 creates conditions where |
Well it is true that this is an abrupt change. But it isn't hard to maintain backwards compatibility with this change. Explicit conversions like |
This reverts commit 00c31e8.
Reverts #12321