-
Notifications
You must be signed in to change notification settings - Fork 740
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
Expects
and Ensures
should be GSL_EXPECTS
and GSL_ENSURES
#1032
Comments
Hi @sean-parent, I looked over the related discussions:
From what I've gathered, it seems like there was hope that contracts would be introduced soon enough, and that for the time being these checks were implemented as macros because of some technical caveats. And because the macros were considered an "implementation detail", their names were chosen purposefully to conform to I.6 and I.8. However, these discussions are quite old and things have changed since then, so I'll re-surface this topic in the next GSL maintainers' sync. Thanks, |
This comment was marked as outdated.
This comment was marked as outdated.
@robert-andrzejuk oops, yes I did thanks for the catch -- updated |
Hi @sean-parent, |
GSL should obey the core guidelines.
Expects
andEnsures
should beGSL_EXPECTS
andGSL_ENSURES
. As the person who has suffered for 30 years for defining widely used macroscheck
andrequire
I can attest to just how bad an idea those names are. (https://opensource.apple.com/source/xnu/xnu-7195.141.2/EXTERNAL_HEADERS/AssertMacros.h.auto.html)The text was updated successfully, but these errors were encountered: