[erlang-questions] How to get the line number of current executable code?
Richard Carlsson
richardc@REDACTED
Sat Aug 16 20:22:22 CEST 2008
Edwin Fine wrote:
> On second thoughts, although that IS very cool, it would likely be very
> expensive because it generates and catches an exception. This would
> matter if it is used to do a lot of logging (which is what I would use
> it for). What I really would like is a compile-time constant
> (pre-processor macro). I suppose one could hack epp...?
Don't worry about that. Exception handling is not particularly
expensive in Erlang. (Certainly not compared to the work of logging.)
/Richard
More information about the erlang-questions
mailing list