[erlang-questions] Why no ?FUNCTION macro

Thomas Lindgren thomasl_erlang@REDACTED
Thu Sep 20 14:05:45 CEST 2007

--- Adam Lindberg <adam@REDACTED> wrote:

> Hi all!
> Why is there no ?FUNCTION macro? If it is possible
> to do ?MODULE and ?LINE
> it should be possible to do ?FUNCTION too?

Well, you then have to know whether you're in a
function or not during macro expansion (and which one,
of course). So it doesn't fit as easily as ?MODULE or

But for what it's worth, I've certainly been annoyed
at the lack of ?FUNCTION too. So please add it, macro


Check out the hottest 2008 models today at Yahoo! Autos.

More information about the erlang-questions mailing list