Remix.run Logo
stefan_ 3 hours ago

You are saying this would not have happened in a C release build where asserts define to nothing?

Wonder why these old grey beards chose to go with that.

tptacek 3 hours ago | parent | next [-]

I am one of those old grey beards (or at least, I got started shipping C code in the 1990s), and I'd leave asserts in prod serverside code given the choice; better that than a totally unpredictable error path.

ashishb 3 hours ago | parent | prev [-]

> You are saying this would not have happened in a C release build where asserts define to nothing?

Afaik, Go and Java are the only languages that make you pause and explicitly deal with these exceptions.

tristan-morris 3 hours ago | parent [-]

And rust, but they chose to panic on the error condition. Wild.

ashishb an hour ago | parent [-]

> And rust, but they chose to panic on the error condition. Wild.

unwrap() implicitly panic-ed, right?