Re: Comments on the File Module

On 9 December 2013 16:56, Tim Mills wrote:

> let $a := file:append-text('foo.txt', ' cat')
> let $b := file:append-text('foo.txt', 'fish')
> return ($b, $a)

  I think the idiomatic solution is to create an explicit dependency
between the calls, by returning "something" from the functions that is
taken as a parameter as well, as explained there:

    http://lists.w3.org/Archives/Public/public-expath/2012Aug/0000.html

  I am afraid I don't remember why we didn't follow this route, but
that should be quite easy to find in the archive, if you are
interested.

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

Received on Monday, 9 December 2013 16:57:04 UTC