|
|
|
|
|
by malcolmstill
1206 days ago
|
|
To be honest that's the major one for me. Someone else has mentioned lifetime annotations, but those uncommon enough that I don't find it much of an issue. If I was to think about it: comparing rust to zig, zig benefits a lot from error and optional types having their own syntax rather than being treated like any other type. For example a return type of: Result<Option<usize>, Error>>
in rust is rendered (mostly) equivalently in zig as !?usize
Note: there are some options in rust for cleaning up errors such as the anyhow library.Disclaimer: I'm a zig fan and contribute monetarily so please weight anything I say on zig vs rust with that in mind. (I do write rust at work though) |
|