function as default parameter
14 Feb
2026
14 Feb
'26
8:57 a.m.
Good morning, I came across some unexpected behaviour when using a function as a default functionparameter: declare function local:test ( $exec as function(*)? := fn( $a, $b) { $a => trace("test1: ") } ) { $exec( "a", "b") } ; local:test(()) I would expect a trace- and a execution result, but I got nothing. Are my expectations wrong or could it be a bug? PS code snipped added as test.xqm PS The optimized query shows an empty value. mvgr. Rob Stapper
54
Age (days ago)
54
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rob Stapper