On Mon, 2005-03-14 at 14:02 +0100, Leopold Toetsch wrote:

> Leopold Toetsch <[EMAIL PROTECTED]> wrote:
> 
> > Syntax proposal:
> 
> >    .sub foo @MULTI
> >      .invocant Integer a
> >      .invocant Float b
> >      .param pmc c
> >      ...
> 
> Alternate syntax:
> 
>   .sub foo multi(Integer, Float)
>     .param pmc a
>     .param pmc b
>     .param pmc c
> 
> I'm now more inclined towards the second one: @MULTI smells too much
> like the pragmas @ANON or @LOAD and the second form is possibly simpler
> to extend if needed. The syntax plays also more nicely with plain
> methods:
> 
>   .sub bar method
> 
> and eventually with
> 
>   .sub baz multi(String, int), method
> 
> Comments?

I like the first one in that it has the names and the types of the
parameters in one place.  Does it need the @MULTI attribute if there are
some parameters declared with .invocant?

-- c

Reply via email to