qt4cg / qtspecs

QT4 specifications
https://qt4cg.org/
Other
29 stars 15 forks source link

fn:deep-equal: default option #1462

Open ChristianGruen opened 2 months ago

ChristianGruen commented 2 months ago

The default value for the option parameter of fn:deep-equal is:

{ 'collation': fn:default-collation() }

Can we simply use {}, or is there a particular reason for mentioning the collation and no other option?

michaelhkay commented 1 month ago

The particular reason is an attempt (I don't know if it's entirely successful) to ensure that all dependencies of functions on the static and dynamic context are captured in default values for function parameters.

michaelhkay commented 1 week ago

There are certainly plenty of examples of functions that have dependencies on the static context that are NOT made explicit in the default values of parameters, so I think this can be changed.