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


Help: OASIS Mailing Lists Help | MarkMail Help

office-formula message

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

Subject: Urgent: external named expressions


Sorry for gatecrashing, while working on a OOoCalc feature for external
named expressions some doubts about our current draft arose.

Section "5.11 Named Expressions" defines

NamedExpression ::= Identifier |
    '$$' (Identifier | SingleQuoted)
NamedExprLocator ::= (Source '#')? (QuotedSheetName '.')?

with test case examples in "5.11.2 External Named Expressions" reading


and "5.11.3 Sheet-local Named Expressions"


I think that it would be much better to treat external and sheet-local
named expressions similar to references by enclosing them in a pair of
square brackets. For one, they _are_ references, as they refer to
another sheet or document. Second, it would be easier to parse as the
square brackets clearly delimit the expression, and it may even fit into
already existing reference parsers. This would give:

NamedExpression ::= Identifier | NamedExprMarked | NamedExprReference
NamedExprMarked ::= '$$' (Identifier | SingleQuoted)
NamedExprReference ::= '[' NamedExprLocator NamedExprMarked ']'
NamedExprLocator ::= (Source '#')? (QuotedSheetName '.')?

with examples


What do you think? Better wording for NamedExprMarked, anyone?


Automatic string conversions considered dangerous. They are the GOTO statements
of spreadsheets.  --Robert Weir on the OpenDocument formula subcommittee's list.

PGP signature

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