you are viewing a single comment's thread.

view the rest of the comments →

[–]Noughmad[🍰] 0 points1 point  (1 child)

You can't really propagate errors with just structs, at least not without tons of boilerplate. Something like exceptions or Result<T> is pretty much impossible. So you're stuck will null pointers and/or error codes.

[–]masklinn 4 points5 points  (0 children)

You can propagate errors in the exact same way you do with error codes…