Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
better error trapping?
#5
(01-06-2023, 08:07 PM)Spriggsy Wrote: You can emulate the try/catch by setting up a block with an "on error goto". A try catch would be quite nice, though. Even if it means it will be _TRY _CATCH..... blegh.... Thank God for $NOPREFIX.

C++ exception handling was one of the worst things to add to that language. Thank God for no "_TRY", "_CATCH", "_EXCEPT", "_FINALLY" or "_WHATEVER". And I prefer the underscores and dislike "$NOPREFIX", thank you.

Oh well, if QB64PE obtains object-oriented programming features then exception handling is inevitable. People are going to heavily expect both, not one or the other. Freebasic doesn't have exception handling yet but I'll bet some programmers are begging for it to make it like C++ as much as possible.

From:
https://www.freebasic.net/wiki/ProPgErrorHandling

Quote:Future OOP versions of FreeBASIC may have a java-like TRY..CATCH...FINALLY exception handler implemented.

LOL Java-like?


(01-06-2023, 09:42 PM)Spriggsy Wrote: There really is no good way to catch "exceptions" in these external libraries.

This is even more true with Linux with the bunch of desktop environments and window managers. GNOME and KDE each one are complex beasts. The Flatpaks seems to rely heavily on GNOME stuff but it doesn't mean it's fairly easy to catch errors. The KDE folks are still having trouble getting even simple screen drawing done correctly and reliably, which is another thing. XFCE is not as popular with people coming over from MacOS and Windows and therefore less programmers would know about exception handling through GUI with that D.E.
Reply


Messages In This Thread
better error trapping? - by madscijr - 01-06-2023, 06:57 PM
RE: better error trapping? - by SpriggsySpriggs - 01-06-2023, 08:07 PM
RE: better error trapping? - by madscijr - 01-06-2023, 09:29 PM
RE: better error trapping? - by SpriggsySpriggs - 01-06-2023, 09:42 PM
RE: better error trapping? - by madscijr - 01-07-2023, 03:34 AM
RE: better error trapping? - by mnrvovrfc - 01-06-2023, 11:22 PM
RE: better error trapping? - by mnrvovrfc - 01-07-2023, 03:38 AM
RE: better error trapping? - by madscijr - 01-08-2023, 03:59 AM
RE: better error trapping? - by aurel - 01-08-2023, 09:11 AM
RE: better error trapping? - by mnrvovrfc - 01-08-2023, 09:50 AM
RE: better error trapping? - by Fifi - 01-09-2023, 11:25 AM
RE: better error trapping? - by aurel - 01-08-2023, 04:09 PM
RE: better error trapping? - by bplus - 01-08-2023, 04:19 PM
RE: better error trapping? - by aurel - 01-08-2023, 05:18 PM
RE: better error trapping? - by bplus - 01-08-2023, 06:29 PM
RE: better error trapping? - by DSMan195276 - 01-08-2023, 06:33 PM



Users browsing this thread: 2 Guest(s)