[Versa] equality
Uche Ogbuji
uche.ogbuji at fourthought.com
Mon Sep 26 13:00:15 MDT 2005
On Mon, 2005-09-26 at 12:46 -0600, Michael Olson wrote:
> the production
>
> qname '=' expression
>
> is really ambiguous in our grammar. In one case, we say (roughly)
>
> expression :== qname '=' expression
>
> and in another we say
>
> keyword-argument :== qname '=' expression
>
> so the query
>
> function_call ( foo = bar)
>
> can always be interpreted as either
>
> "call the function "function_call" with the keyword argument "foo" set
> to "bar"
>
> or
>
> "call the function "function_call" with a single boolean parameter"
>
> precedence would not help this case
>
> I think we need the "==", or something else. In this case I think "=="
> strongly maps to other languages and is a very good choice.
Yes. I can see this. Oh well.
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://fourthought.com
http://copia.ogbuji.net http://4Suite.org
Articles: http://uche.ogbuji.net/tech/publications/
More information about the Versa
mailing list