[erlang-questions] Intel Quad CPUs

Damien Morton dmorton@REDACTED
Fri Sep 7 01:26:37 CEST 2007


Why does the integer type look like a function call?

On 9/6/2007 5:16 PM, David Mercer wrote:
> On Thursday, September 06, 2007, Tony Finch wrote:
>   
>> What is the reason for the trailing ()s? It would be nice if the syntax
>> had less redundant visual noise.
>>     
>
> So it can tell the difference between an integer and the atom 'integer'?
>
> Cheers,
>
> David
>
> -----Original Message-----
> From: erlang-questions-bounces@REDACTED
> [mailto:erlang-questions-bounces@REDACTED] On Behalf Of 
> Sent: 14:00
> To: Kostis Sagonas
> Cc: Erlang
> Subject: Re: [erlang-questions] Intel Quad CPUs
>
> On Tue, 4 Sep 2007, Kostis Sagonas wrote:
>   
>> In the new language you would write (or preferably change the above edoc
>> comment to be):
>>
>> -spec(foo/2 :: ((integer(), float()) -> atom())).
>>     
>
> What is the reason for the trailing ()s? It would be nice if the syntax
> had less redundant visual noise.
>
> Tony.
>   




More information about the erlang-questions mailing list