Re:If is Evil when used in location context
by ashleyn on Wednesday August 23, 2023 @05:58PM
(#37242397)
I may be one of the biggest Rust evangelicals, but C isn't an excuse for a design that considers segfaulting expected behaviour on invalid user input. That points more to a lack of validation where needed, nothing that C makes impossible or even hard to do.
[ Parent
| on HN ]
Re:If is Evil when used in location context
by carlmr on Thursday August 24, 2023 @03:18AM
(#37245986)
It isn't an excuse, but having worked with C and Rust programmers, C programmers IME tend to have attitudes blaming users for not RTFM and Rust programmers (again IME, not generalizing) have more of the opinion that illegal states should not be reachable through public API, i.e. blame the designer, not the user.
I think it's reflective of Rust vs C design philosophy.