CppCoreGuidelines icon indicating copy to clipboard operation
CppCoreGuidelines copied to clipboard

Should/can Expects and Ensures be macros?

Open hsutter opened this issue 1 year ago • 2 comments

If so, should we change their names per Sean Parent's comment at https://github.com/microsoft/GSL/issues/1032 ?

hsutter avatar Feb 21 '24 23:02 hsutter

Editors call: We've been dragging our feet on this because Expects and Ensures were supposed to be temporary placeholders that would soon (in C++20) be made redundant by contracts. Now contracts has been targeting C++26 so we again have been waiting. Now that it looks like contracts may not make C++26 we need to find a solution (make them not macros, or make them not those popular names).

hsutter avatar Jun 06 '24 17:06 hsutter

@BjarneStroustrup Is there any update here? We would like to address an open issue in GSL.

carsonRadtke avatar Oct 16 '24 22:10 carsonRadtke