[erlang-questions] EEP 45: New macros for function name and arity

Björn Gustavsson bjorn@REDACTED
Wed Nov 11 15:06:44 CET 2015


This is the third draft. This draft will specify what will
happen when the following code is compiled:

-define(FOO, foo).
?FOO(?FOO) ->
    {?FUNCTION_NAME,?FUNCTION_ARITY}.

?FUNCTION_NAME() ->
    ?FUNCTION_ARITY.

There is also additional justifications for why
there is no ?FUNCTION_STRING macro.

http://www.erlang.org/eeps/eep-0045.html
https://github.com/erlang/eep/blob/master/eeps/eep-0045.md

/Björn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list