Is an unbound variable an Atom?

Variables start with upper case, but are unbound variables Atom?
Or is it grammatically determined to be a variable if it starts with an uppercase letter?

Thank you very much.

Uppercase means variable. If it’s unbound when you try to use it then it’s an error. To use it as an atom surround it with single quotes.

1 Like

I see! is that so!
By enclosing it in single quotes, Erlang can Atomize the spelling that starts with a capital letter!

thank you.

1 Like