-
-
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
move assertions out of system #19599
Conversation
when not defined(nimPreviewSlimSystem): | ||
{.deprecated: """assertions is about to move out of system; use `-d:nimPreviewSlimSystem` and | ||
import `std/assertions`.""".} | ||
import std/assertions | ||
export assertions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bad idea, users have no control over system.nim. Instead remove the import/export of assertions and patch the tests. Important packages can be compiled via --useVersion:1.6
or similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, here is the first step: #19601 (support useVersion:1.6)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is something like this okay?
Except the two files I mentioned above, others changes are about import std/assertions(syncio) under I use command |
ref nim-lang/RFCs#437