-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Can we merge two assert statements? #8856
Comments
Doesn't seem so. The |
The manual notes the macro is the preferred, but doesn't say why. |
Could be good to have PR that deprecates the |
Beginner's questions:
|
In what way was it not sufficient? What happened vs what did you expect? I don't think the annotation exists as such yet, but there has been talk and one or two other issues on the idea of using compiler options or flags to set different debugging levels for whether assertion statements get skipped, etc. If people want to make asserts fancier in the future, would be easier if it only had to be done to the macro form instead of both the macro and the function. |
@michele-zaffalon My vision was, for the deprecation, to
For annotation, I know that |
@tkelman Here is what I did:
When I do
|
@IainNZ There doesn't seem to be a need for an For the second part, I am not good enough to do it myself. |
Triage thinks we should deprecate |
Triage accepts: deprecate |
I'll take a stab at this today. |
Closed by #26194. |
So we have
@assert
and
assert
, which can't take a second argument,Is there any need to keep both?
The text was updated successfully, but these errors were encountered: