[eeps] Re: Line numbers in exceptions
Björn Gustavsson
bgustavsson@REDACTED
Thu Mar 31 15:49:21 CEST 2011
2011/3/30 Thomas Lindgren <thomasl_erlang@REDACTED>:
> Hi Björn,
>
> This looks pretty great to me, but I _strongly_ suggest you hide the data
> representation and make the location info an abstract datatype with a
> well-defined API a la dict, proplist and the others.
The data representation is a proplist, so the proplists module can
be used. Adding a special module would provide a very thin
abstraction on top of proplists, and that seems to be over-kill, IMO.
> NB: Smart exceptions also adds more info than just the line number to an
> exception (e.g., BIF parameters), but maybe that's better handled on a higher
> level.
BIF parameters are already available in the stacktrace (and has been
for a long time).>
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the eeps
mailing list