[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
?LINE.
But for what it's worth, I've certainly been annoyed
at the lack of ?FUNCTION too. So please add it, macro
hackers!
Best,
Thomas
____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
More information about the erlang-questions
mailing list