4 ms·
In the exception example, there is a line saying: {'try',{y,0},{f,13}}. Why is the symbol `try` quoted here? Does it need to, if its name is all lowercase
by phoe-krk 6y ago
In the exception example, there is a line saying:
{'try',{y,0},{f,13}}.
Why is the symbol `try` quoted here? Does it need to, if its name is all lowercase?
- rdtsc 6y agoBecause 'try' is also a keyword in Erlang. The other symbols like that without the quotes are atoms (http://erlang.org/doc/reference_manual/data_types.html#atom http://erlang.org/doc/reference_manual/data_types.html#atom). So to have an atom named after a keyword we'd have to add single quotes around it.
- phoe-krk 6y agoYes, got it - thank you for the response.