[erlang-questions] noob namespace question

Max Bourinov <>
Wed Dec 12 19:08:35 CET 2012


Hi Rustom,

note that 'CapitelLetter' is also an atom.


On Wed, Dec 12, 2012 at 10:00 PM, Loïc Hoguin <> wrote:

> On 12/12/2012 06:58 PM, Rustom Mody wrote:
>
>> In Erlang variables start with a capital letter, atoms start with a
>> lowercase letter.
>> Functions also start with lowercase.
>>
>> How does Erlang distinguish atoms and functions? Especially in the
>> context of higher order functions.?
>>
>> [Disclaimer: noob to Erlang but not functional programming or Lisp.
>> Erlang atoms look quite close to Lisp atoms though also different...]
>>
>
> Function names are atoms.
>
> Funs don't have a name (yet) so there's no naming happening there.
>
> --
> Loïc Hoguin
> Erlang Cowboy
> Nine Nines
> http://ninenines.eu
> ______________________________**_________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121212/a2a35b40/attachment.html>


More information about the erlang-questions mailing list