Reputation: 2807
I can't see anything explicit in any of the specs. If I ask chatgpt it invents (quite magically) a undocumented xslt command called "xsl:lazy", its a very sensible proposal, but i can find no evidence it actually exists. When I run code in oxygen, I notice at times certain variables (I think globals) look as if they are lazy.
I hoped that 'sequences' returned from functions were lazy, but my experiments seem to indicate that they arent.
(This is using saxon PE 10.6)
Upvotes: -1
Views: 72
Reputation: 2807
The simple answer here is maybe, but its not directly under the control of the programmer.
So for all practical purposes you need to assume no.
It IS possible to build a lazy abstraction, that will be lazy in both an eager and lazy environment though.
Upvotes: 0