Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

c++ Is assert evil?

Name: Anonymous 2011-02-07 23:41

The Go language creators write*:

Go doesn't provide assertions. They are undeniably convenient, but our experience has been that programmers use them as a crutch to avoid thinking about proper error handling and reporting. Proper error handling means that servers continue operation after non-fatal errors instead of crashing. Proper error reporting means that errors are direct and to the point, saving the programmer from interpreting a large crash trace. Precise errors are particularly important when the programmer seeing the errors is not familiar with the code.

Surely they're being faggots, right?

______________________________
* http://golang.org/doc/go_faq.html

Name: Anonymous 2011-02-08 18:55

>>25
It doesn't have anything that's considered harmful:
no gotos, no asserts, NO EXCEPTIONS, no templates, no generics, no macros, no Lisp macros (yes, they really think they are harmful), no metaprogramming support, no continuations, ....

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List