[OT] Error handling in C3 language

Vinod K Chandran kcvinu82 at gmail.com
Mon Nov 3 04:32:35 UTC 2025


>On Saturday, 25 October 2025 at 03:13:40 UTC, Kapendev wrote:

On Saturday, 25 October 2025 at 03:13:40 UTC, Kapendev wrote:
>
> Old forum post :)
> Anyway, Odin just has multiple return values.
> The C3 way is OK for basic things and I use something similar 
> in my [D 
> code](https://github.com/Kapendev/parin/blob/main/source/parin/joka/ascii.d#L913). It's a Maybe/Option type, but with an error code instead of a bool. I don't think you should make that part of your language, or do it the way C3 did, but ehh.
>

Yes, multiple return values are the foundation of Odin’s error 
handling. By the way, I am a big fan of your Joka library. I was 
looking for a starting point to learn betterC because I plan to 
create a Windows-only GUI library using D + betterC, but I did 
not know where to start. I searched the forum and found your 
library. You did an excellent job; thank you for that.


More information about the Digitalmars-d mailing list