[Github-comments] [geany/geany-plugins] Use "g_return_val_if_fail()" instead of producing an own error message. (109b8d0)

elextr notifications at xxxxx
Sun Aug 20 00:50:49 UTC 2017


@b4n 

>  (although in practice most builders don't disable them anyway)

Because they know things will crash if they do :frowning: 

> as these checks are for programming errors, and should not depend on user behavior.

Thats a specious argument.  Since most programmers fix crashing errors that occur every time the program runs, the errors MUST depend on user input otherwise they would be fixed if they occurred all the time.  So unless you apply analysis or exhaustive testing user input can always expose programming errors, so if the program can politely decline to perform the user operation and keep running its better than crashing.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/commit/109b8d079a59ba35e8aba5da960fc5b10f03ea7f#commitcomment-23747714
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170820/401e7c0b/attachment.html>


More information about the Github-comments mailing list