[Grace-core] Further questions on the specification
Andrew P. Black
black at cs.pdx.edu
Thu May 26 23:15:52 PDT 2011
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