[Github-comments] [geany/geany] Push current position to navqueue before navigating back (#1537)

elextr notifications at xxxxx
Sat Jul 15 06:43:24 UTC 2017


@kugel- Its not really about this PR itself, its about trying to define an error handling idiom since HACKING is silent on the issue (AFAICT).  But we should indeed apologise to @vfaronov for hijacking his PR for that discussion (but I will now continue to do so :)

That there are differing opinions reflects the fact that there is no "right" answer, it depends how you look at it.  Developers want to know about anything dodgy as soon as possible, and to BT it to see how it got to the problem.  Users do NOT want Geany to crash because it risks losing their work in progress. Unfortunately the set of tools provided by C are heavily biased towards developers so they need to be applied carefully or they can reduce Geany's reliability.    So its not unexpected that there are varying opinions.

As you can tell I am more sympathetic to the users, so support Geany continuing to run wherever possible, even if that means dropping some item of functionality, as @vfaronov does in the original code if he encounters NULLs.  But I also support telling the developers that something dodgy is going on, so using `g_critical()` and friends seems useful, especially as they can be made to crash by setting the G_DEBUG environment symbol, allowing backtraces to be obtained.

-- 
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/pull/1537#issuecomment-315514567
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170714/d776c7cc/attachment.html>


More information about the Github-comments mailing list