[Versa] equality

Jeremy Kloth jeremy.kloth at fourthought.com
Mon Sep 26 13:18:35 MDT 2005


On Monday 26 September 2005 1:10 pm, Michael Olson wrote:
> > Maybe look to the Python grammar for some help.  Although it really
> > depends on
> > how the grammar is interpreted.  If there are two levels, a "line" and
> > a
> > series of "lines" then it would be easy enough.  In Python speak, a
> > statement
> > maps to a "line" and a "suite" maps to a sequence of "lines".
>
> Python won't help.  In Py
>
> f (foo = bar)
>
> is always a keyword argument because "==" is used for identity and you
> cannot do assignment in a function argument list, except for key word
> arguments.

I think you missed a key point.  Is 'var = value' (an assignment) going to be 
allowed anywhere (conceptually), or only standalone.  If anywhere, then yes, 
we must use '==', otherwise the Python grammar will help.  I was assuming 
that when/if the grammar was broken into two parts, that expression wouldn't 
be top-level, but something like statement from Python would be.

-- 
Jeremy Kloth
Fourthought, Inc.
http://fourthought.com/
http://4suite.org/


More information about the Versa mailing list