cplusplus / sender-receiver

Issues list for P2300
Apache License 2.0
19 stars 3 forks source link

[exec.general] Wording for AS-EXCEPT-PTR should use 'Precondition:' instead of 'Mandates:' for runtime properties #234

Open lewissbaker opened 4 months ago

lewissbaker commented 4 months ago

The definition of the exposition-only AS-EXCEPT-PTR has a case for when the error is already an exception_ptr that has the following requirement:

  • Mandates: err != exception_ptr() is true

"Mandates" clauses are usually for things which are ill-formed and can be detected at compile-time. However this is a runtime property and so should probably be a Precondition: instead.

Also, could be simplified to:

  • Precondition: !err is false.