News for hackers. Stuff that matters.
Re:Constructors and evil initializers in C++ by omegalulw on Wednesday November 24, 2021 @09:22PM (#29337608)
> I work without exceptions, and the typical solution is to crash the whole program (using assert) if the parameter is invalid.

That's lazy. Why not return via error?

Re:Constructors and evil initializers in C++ by cyber_kinetist on Wednesday November 24, 2021 @11:36PM (#29338259)
It really depends on the thing you’re making, but for gamedev it is often regarded as good practice to assert on error and crash the whole game, so you can explicitly find those errors right away instead of waiting for it to silently cause more subtle problems down the line.