OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: 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




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC