[erlang-questions] Don't understand the error message: call to local/imported function ... is illegal in guard

Donald Steven t6sn7gt@REDACTED
Mon Dec 24 01:26:47 CET 2018


This code works:

     AlphaNumericChar = isAlphaNumeric(C),
     if AlphaNumericChar ->

but this code (which is functionally identical):

     if isAlphaNumeric(C) ->

produces an error message: call to local/imported function 
isAlphaNumeric/1 is illegal in guard

Why?




More information about the erlang-questions mailing list