"vaxace" wrote:
Really wish this thing had exception handling 😞
You can always roll your own, Perl style. That is, use
eval to run chunks of code and check for errors afterwards. It's not quite the same, you won't be able to throw specific errors, but you will be able to catch code problems and report their
general location. Unfortunately, there aren't two sets of quotes or a heredoc facility, so dealing with strings would be a pain.
P.S.
Don't laugh. I know it's kind of ridiculous.
🙂P.P.S.
Perl's version of this is a real exception mechanism in that you can hand it a code block, and you can die with arbitrary data, allowing the equivalent of actual exception throws.
-- GandK Labs
Check out Reversi! in the channel store!