right now, trying to emulate exceptions in @nogc nothrow
code means i have to add 50 if (errorCode != ErrorCode.Ok) { return errorCode }
s everywhere, and use out parameters if i want to actually return anything. it would be so much nicer [and cleaner!] if there was some kind of language support for this.
June 03, 2022 when will we have `@nogc nothrow` value exceptions in D? | ||||
---|---|---|---|---|
| ||||
June 04, 2022 Re: when will we have `@nogc nothrow` value exceptions in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Moth | On Friday, 3 June 2022 at 23:13:39 UTC, Moth wrote: >right now, trying to emulate exceptions in Realistically: there's a good chance D never gets language support for this, and even if it does, it'll probably be a long time. The best we can do in the short term is a Rust-style |
Copyright © 1999-2021 by the D Language Foundation