[erlang-questions] Why no ?FUNCTION macro

Fri Sep 21 04:42:18 CEST 2007

Note that __FUNCTION__ (or whatever it's call) in C99 is not,
strictly speaking, a preprocessor macro.  Basically,
it's a funny way of writing a context-dependent string literal.

It's not even clear whether it should "foobar/#" or {foobar,#}
in Erlang.  Possibly the simplest way to hack it would be to write
a parse transform.

More information about the erlang-questions mailing list