Better HN
topnewbestaskshowjobs
Log inSign up

playdmc2

12 karma · joined Sep 13, 2022 (4y ago) · 5 submissions

Submissions

comment 4y ago · link · parent

that was a genuine response, not trolling. are you so emotionally invested in c++ that you take criticism against it as some kind of personal slight?

comment 4y ago · link · parent

exceptions opens the door to your control flow being rug pulled in exchange for... an error message? realistically all you can do is wrap chunks of code in a `try { } catch (const std::exception &e)` block and hope they've implemented `std::exception::what`. an enum based approach gives you both better error messages and certainty of what errors can occur and when.

comment 4y ago · link · parent

increased compile times are a reasonable tradeoff for correctness, no? hardware can always be thrown at the problem. as soon as someone does a c oopsie you're going to lose whatever time you saved to debugging

comment 4y ago · link · parent

thank you fellow brogrammer, i would only trust Real Code™ written by Real Coders™ in a Real Programming Language™ such as c, as god intended

comment 4y ago · link · parent

obnoxious about what? c++ is so brittle that a gentle breeze could cause a cacophony of soundness issues