On Tue, 16 Dec 2025 07:40:27 GMT, Axel Boldt-Christmas <[email protected]>
wrote:
>> 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")]]`
But the way it says `// The caller is responsible to thow an exception on
failure` now. There is an typo.
Maybe `It is the caller's responsibility to throw an exception on failure` or
`The caller is responsible for throwing an exception on failure`
-------------
PR Review Comment:
https://git.openjdk.org/valhalla/pull/1792#discussion_r2622157678