This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: names / defaults

1 reply
Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.

:= is a valid method name.

Ugh, you stink of Pascal!

2009/6/2 James Iry :
> With call-by-name parameters and a general friendliness towards "create your
> own control flow constructs" I don't think it's that bizarre.
>
> Is it too late to rename the assignment operator to "foo := 3"?    ;-)
>
> On Tue, Jun 2, 2009 at 7:46 AM, martin odersky
> wrote:
>>
>> >
>> Normally, I'd agree with you, David. But I think that passing a
>> side-effecting expression of unit into a function is sufficiently
>> bizarre that in practice f(x = e) will always be read as a named
>> parameter.
>>
>> Cheers
>>
>>  -- Martin
>
>

James Iry
Joined: 2008-08-19,
User offline. Last seen 1 year 23 weeks ago.
Re: names / defaults
begin
  no I don't!;
end.

On Tue, Jun 2, 2009 at 7:53 AM, Ricky Clarkson <ricky.clarkson@gmail.com> wrote:
:= is a valid method name.

Ugh, you stink of Pascal!

2009/6/2 James Iry <jamesiry@gmail.com>:
> With call-by-name parameters and a general friendliness towards "create your
> own control flow constructs" I don't think it's that bizarre.
>
> Is it too late to rename the assignment operator to "foo := 3"?    ;-)
>
> On Tue, Jun 2, 2009 at 7:46 AM, martin odersky <martin.odersky@epfl.ch>
> wrote:
>>
>> >
>> Normally, I'd agree with you, David. But I think that passing a
>> side-effecting expression of unit into a function is sufficiently
>> bizarre that in practice f(x = e) will always be read as a named
>> parameter.
>>
>> Cheers
>>
>>  -- Martin
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland