Dear Liam,
Who says I am uncertain? I merely ask you to consider the question.
Posing it should not be taken to imply that I believe either in
"self-commenting code" or that I think the best measure of what makes a
good path is its string length (either long or short). As for your dogma
that the code should be written with its future readers and maintainers in
mind -- I agree with that so much, I might have come up with it myself. :-/
Cheers, Wendell
On Mon, Sep 21, 2020 at 1:54 PM Liam R. E. Quin
liam(_at_)fromoldbooks(_dot_)org <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
On Mon, 2020-09-21 at 15:44 +0000, Wendell Piez
wapiez(_at_)wendellpiez(_dot_)com
wrote:
... and of course this can be simplified to
$a, $b[empty($a)], $c[empty(($a,$b))]
can't it?
Your uncertainty indicates that it isn't clear enough to be maintained
easily, and i'd want to avoid it.
Part of the XSLT 3 course i have run is the concept i call “the
rhetoric of XSLT”—a consideration of who will be reading the code can
help to determine how “maths” you can make it.
Liam
--
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
--
...Wendell Piez... ...wendell -at- nist -dot- gov...
...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org...
...github.com/wendellpiez... ...gitlab.coko.foundation/wendell...
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--