There is anything like nodiscard attribute in D?

victoroak anyone at any.com
Mon Jul 29 14:23:43 UTC 2019


I have an Expected/Result struct, but without an attribute 
similar to nodiscard 
(https://en.cppreference.com/w/cpp/language/attributes/nodiscard) 
is not very useful.

There is anything like that in D? If not, there is any plan to 
add it?


More information about the Digitalmars-d-learn mailing list