On Mon, 15 Dec 2025 21:33:27 GMT, Stefan Karlsson <[email protected]> wrote:

>>> The caller is responsible to throw an exception on failure
>> 
>> That would be perfect!  Thanks
>
> I added the last sentence but I'm a little bit uncertain about the grammar. 
> Feel free to nit-pick if it sounds weird.

In C++20 we can have the message be part of the attribute. `[[nodiscard("The 
caller is responsible to throw an exception on failure")]]`

-------------

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/1792#discussion_r2622152421

Reply via email to