[erlang-questions] How to get the line number of current executable code?

Richard A. O'Keefe <>
Tue Aug 19 02:53:23 CEST 2008


On 19 Aug 2008, at 12:59 am, Robert Virding wrote:

> The Erlang compiler isn't that smart.  (Yet.  A man can dream.)
>
> One problem Erlang would have doing this type of optimisation, which  
> would be wonderful to have, is the handling of side effects and  
> errors.

I have also dreamed of a
  -pure([f/n,...]).
directive, such as NU Prolog had.
This would make a verifiable claim that the function(s) named would
only call functions that are themselves pure, and a promise that if
any exception would be raised in a call to such a function it would
not matter which exception.

However, that seemed off topic.

--
If stupidity were a crime, who'd 'scape hanging?










More information about the erlang-questions mailing list