[erlang-bugs] [erlang-patches] syntax_tools anonymous function error

Loïc Hoguin <>
Wed Dec 18 12:12:51 CET 2013

On 12/18/2013 12:05 PM, David Welton wrote:
> What is necessary is some code that will do
> case erlang:system_info(otp_release) of
>     "R16B03" ->
>         ... mangle the AST in such a way to not make the parse transform barf...;
>      _ -> ok
> end.

Don't do that, this doesn't mean that the syntax_tools application will 
actually be the one that shipped with R16B03. Check the application 
version instead: application:get_key(syntax_tools, vsn). (Note that this 
is only available after the application is loaded.)

Loïc Hoguin

More information about the erlang-bugs mailing list