[Grace-core] Further questions on the specification
Kim Bruce
kim at cs.pomona.edu
Thu May 26 23:34:53 PDT 2011
I agree, my argument does not work with mixfix methods.
Kim
On May 26, 2011, at 11:15 PM, Andrew P. Black wrote:
> On 26 May 2011, at 22:43, Kim Bruce wrote:
>
>> I think it is hard to make method calls unambiguous if there are vargs parameters at more places than the end. Imagine a call to a method with signature:
>> method m(ns: Int*,k:Int*)
>> or whatever syntax -- how do you know when you call o.m(1,2,3,4,5) which parameters go where?
>>
>> Kim
>
>
> Yes, I think that more than one varargs parameter is a bad idea. But there may be reasons not to insist on having them at the end.
>
> for (elements…) do (block)
>
> is an example where having the varargs first makes sense. The interpretation is unambiguous in this case.
>
>
More information about the Grace-core
mailing list