RE: ACTION 614-12: Smart Quotes

> 
> I don't think this would be a good think to try to do "something clever" with
> indentation with such a feature.  It is meant to be a "block of text" feature,
> and changing its content would break the "least surprise" rule.
> 
> I think coming with one example where one rule would make sense is easy,
> but it is as easy to come with a counter-example.  That would also be
> different than xsl:text.
> 

Yes, makes sense. I just hate it when you have to wrap a whole function call with parentheses around a big block of text. And I didn't think about the XP31 feature of the arrow operator, with it, this becomes much less a concern:

let $b := books/book
return
    for $b in book
    return
        for $a in author
        return « Book title: « $b/title »
             § author: « $a »
             § role: « $a/role » » => my:fix-indent()

(I would assume that to be legal syntax)

Received on Wednesday, 16 September 2015 05:57:51 UTC