There is a new EEP 45 that proposes a new FUNCTION macro in the preprocessor. 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