nothrow by default

Jacob Carlborg doob at me.com
Wed Jul 1 18:13:45 UTC 2020


On 2020-06-30 21:55, Kayomn wrote:

> Interested to read other's thoughts on this form of more compile-time 
> focused error handling, as it seems like a far less costly alternative 
> to exceptions in my estimation

I would like to have something like the zero overhead exceptions C++ 
proposal [1]. Then all the existing syntax used for exceptions can be 
reused. But with the performance of returning a result type.

[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0709r0.pdf

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list