Replies: 7 comments 9 replies
-
Perhaps we should adopt (but depluralize) the "expects"/"ensures" nomenclature of the abortive C++20 proposal for contract checking, with the standard
I think it's ok for |
Beta Was this translation helpful? Give feedback.
-
In that set, I would say that:
sorta makes sense. As "requiring" as a stronger connotation as "expecting". |
Beta Was this translation helpful? Give feedback.
-
For me "Insist" as an odd slant as I read it closer to the meaning of "to maintain in a persistent or positive manner ". I.e. rather than requiring the condition to be true, it feels that INSIST would try harder to make it true. |
Beta Was this translation helpful? Give feedback.
-
I agree with this conclusion. 'Error' would only make sense in the style |
Beta Was this translation helpful? Give feedback.
-
I would recommend to go ahead now. There is less code to update, the 'previous one' are less ingrained that they will be by then (and/or we have more time to get used to the new one) and the code base is small enough that we can even imagine forgoing the backward compatibility stage and ask for the PR to be updated (sed should work fine here to update the code). |
Beta Was this translation helpful? Give feedback.
-
OK @pcanal how about this. I think we should use imperative tense because these are function-like calls rather than annotations, and they're in the spirit of the
|
Beta Was this translation helpful? Give feedback.
-
OK per our discussion, the final remapping is:
I'll make these changes in a PR tonight after #104 gets merged. |
Beta Was this translation helpful? Give feedback.
-
Coarse summary of a conversation with @pcanal at #95 (comment) and #95 (comment):
CELER_
.INSIST
, isn't obvious from the names (only in context of the code).The difference between
INSIST
andCHECK
is that INSISTBeta Was this translation helpful? Give feedback.
All reactions