Next in thread → Next in month →

Re: [relax-ng] Why I oppose to the current syntax of A.1

From
James Clark <>
Date
2002-10-31T13:22:22+00:00
ID
014b01c280e0$490aa820$
Thread
Re: [relax-ng] Why I oppose to the current syntax of A.1
> > I don't see any need to give a name to the synthesized attribute,
> >since there's only ever one synthesized attribute.
>
> If we allow more than one synthesized attribute per non-terminal, we are
> no longer forced to create pairs of annotation attribute sets
> and an annotation element or string sequences.  Then, "applyAnnotations"
> receives three parameters and "emptyAnnotations" becomes unnecessary.
> I think that this change contributes to readability.

That's true, but I think to our prospective audience -- principally
programmers -- a single return value (which is what a synthesized attribute
is in programming turns) is very natural and using a "return" keyword to
specify this return value is also very intuitive.

James
Next in thread → Next in month →