News for hackers. Stuff that matters.
Re:What if you couldn’t program with loops? by tomtomtom777 on Monday July 15, 2019 @08:21AM (#20440086)
In this list of loop-special-languages, XQuery also deserves an honorable mention.

With the sequence being the root datatype, it makes loops rather implicit. You can write

    declare function local:formatName($person) {
      xs:concat($person/@firstName, " ", $person/@lastName)
    };
and it will format the name of zero, one or many persons.

Working with XQuery makes you think differently about iteration and shows how much plumbing we normally use for it.

Re:What if you couldn’t program with loops? by thrownaway954 on Monday July 15, 2019 @10:24AM (#20441097)
OMG!!! I remember writing code generators for ColdFusion in XQuery. Total mind shift and, dare I say, ALOT OF FUN!!! It's amazing what XQuery did.