[eeps] New - EEP 44: Additional preprocessor directives
Björn Gustavsson
bjorn@REDACTED
Wed Oct 14 05:54:42 CEST 2015
On Tue, Oct 13, 2015 at 11:30 AM, Michael Truog <mjtruog@REDACTED> wrote:
> Could we please add a FUNCTION macro which returns the name of the function
> as an atom and a FUNCTION_ARITY macro that returns the "name/arity" as a
> string? Those should cover a common desire in Erlang source code and would
> eliminate any functionality benefit when implementing logging with a parse
> transform over all source code when compared to logging that relies on
> macros.
Not to this EEP. Having a FUNCTION macro is probably not
controversial in the same way as conditional compilation, so
it should be a separate EEP.
/Bjorn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the eeps
mailing list