Feedback Thread: DIP 1029--Add throw as Function Attribute--Final Review

Walter Bright newshound2 at digitalmars.com
Tue May 5 08:55:58 UTC 2020


On 4/17/2020 6:03 AM, Tove wrote:
> I like it, but would prefer:
> throw!bool
> 
> 1) makes meta-programming easier
> 2) would allow deprecating nothrow (in very long term)
> 3) there is precedence in C++ 'noexcept(expression)'
> (even if they made the wrong choice with using the negated specifier)
> 
> Any arguments against?

throw!bool implies it is throwing a bool. Besides, with throw/nothrow we already 
have the full functionality.



More information about the Digitalmars-d mailing list