Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Techcable
· 4w ago · 0 comments
It is idiomatic C to use in-band sentinel values (NULL is the most prominent example). It is very much not idiomatic rust.
Comments
[–]
1718627440
3w ago
It's also idiomatic in C to use the return value solely for sentinels and pass the actual result in an output variable.