[erlang-questions] noob namespace question

Max Bourinov bourinov@REDACTED
Fri Dec 14 08:23:19 CET 2012


That was Max Bourinov. We have at least 3 Maxs in Russia that do Erlang:
Max Lapshin, Max Treskin and Max Bourinov.

On Fri, Dec 14, 2012 at 11:20 AM, Gianfranco Alongi <
gianfranco.alongi@REDACTED> wrote:

> I see your confusion - and I would as well be confused,
> for the email did not follow the tracks of your shoes.
>
> I replied to the last email in the discussion,
> but did not intend to quote you or follow the fashion.
>
> From the previous emails in this thread,
> it seemed to be implied about function names,
> that they must only be in lowercase.
>
> But, as Max Lapshin ? (I think) - reminded us all,
> 'UpperCaseText' is an atom as well,
> thus it okay to  StareAt:'TheWall'().
>
> G
>
>
> On Fri, Dec 14, 2012 at 3:16 AM, Richard O'Keefe <ok@REDACTED>wrote:
>
>>
>> On 13/12/2012, at 7:25 PM, Gianfranco Alongi wrote:
>>
>> > By implication - what I will write has been said.
>> > But I will just spend a second reinforcing this and dispelling any
>> misconceptions.
>> >
>> > They can - if you force it into an atom.
>>
>> I am confused by the pronoun references here.
>> "They" refers to what things?
>> "can" refers to what action?
>> "it" refers to what thing?
>>
>> In the text of mine that was quoted, the claim was that
>> an atom cannot be a function and it cannot be a function name
>> all by itself either.
>>
>> This is true, and has nothing whatever to do with quotation marks.
>> >
>> > -module(capsFuncs).
>> > -export(['Run'/1]).
>> > 'Run'(this) ->
>> >     that.
>> >
>> > 1> c(capsFuncs).
>> > {ok,capsFuncs}
>> > 2> capsFuncs:'Run'(this).
>> > that
>>
>> The only thing this illustrates is that a quoted atom can be used
>> as part of a function name, and as far as I could tell, nobody ever
>> saidotherwise.  This example does not show an atom being a function
>> or being a function name all by itself.  The only function in
>> sight is the one whose name is the triple capsFuncs:'Run'/1,
>> which may be abbreviated to 'Run'/1 within the capsFuncs module.
>>
>> IIRC, the original poster said he knew something about Lisp,
>> so the fact that
>>         (defun |Run| (arg) 'that)
>> is legal Lisp would have prepared him to _expect_ quoted atoms
>> to be usable as (parts of) function names.
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121214/e1074a75/attachment.htm>


More information about the erlang-questions mailing list