[eeps] EEP ???: Value-Based Error Handling Mechanisms

e@REDACTED e@REDACTED
Mon Sep 10 16:48:03 CEST 2018


i'm sorry to interrupt,
but all you REALLY NEED is to tweak the "try..catch" a little bit,
in a manner that the catch clause receives and returns
more comprehensible values, the values that are clearly linked
with the failed expressions and human readable.

you do not need a new messy CRYPTIC operator.

try
   {ok, Result} = foo(...)
, {ok, _} = foo2(...)
catch
  {somehow_identify_which_line_failed, unobscured_the_rightside_value}
     ->  ...
   -
     -> default_returnvalue
end

and if (i am ignorant about that) "try" has drawbacks,
then reimplement it the way you intend to implement your new operator.





More information about the eeps mailing list