Comments (5)
[ 3, 4, 5 ](2, 1)
Did you mean that, or did you mean
[ 3, 4, 5 ]((2, 1))
Do you want it to be a variadic function with a variable number of arguments, or a function that takes an integer sequence as a single argument?
from qtspecs.
Glad you ask this question; it was mine as well:
- From the non-expert user perspective (not knowing the fundamental details between lookups and function calls), the variadic variant would be more intuitive, ideally with a flattened result over the result of all arguments.
- From the implementor perspective, a single argument would be easier to realize β and it would be less invasive, as it would allow us to introduce additional parameters in the future.
from qtspecs.
In general we made a decision in principle that functions should not do implicit mapping over their arguments. You can argue that map:get($map, $key)
should do implicit mapping if $key is a sequence of keys, but you can equally argue that it should do implicit mapping if $map is a sequence of maps. So I suggest we don't do this.
As for $map($key)
if we allow $key to be a sequence here then we have to revise the complex rules for the implicit type of the map as a function and therefore the subsumption rules for map types, which is a swamp I would rather not revisit.
from qtspecs.
Thanks for your assessment. I assume that only a minority of users would benefit from this, so Iβd be happy to close it.
from qtspecs.
The CG agreed to close this issue without action at meeting 065
from qtspecs.
Related Issues (20)
- Residual references to union(A, B)
- new function - fn:tail-recurse a function to allow users to hand roll their recursion and guarentee tail recursion. HOT 11
- Attribute priority for xsl:accumulator-rule HOT 1
- Generalization of Deep Updates HOT 2
- Rendition of RFC2119 terms HOT 1
- Seralization Parameters: Indentation, Whitespace, Newlines HOT 2
- Function Identity: Treating function items with identical bodies HOT 12
- QT4CG-078-01 fn:unparsed-text-lines, normalize newlines HOT 4
- XSLT on-no-match="shallow-copy-all" - revised rules HOT 3
- XSLT xsl:next-match with select attribute HOT 1
- $sequence-of-maps ? info() HOT 4
- Node constructor vs. otherwise/map constructor HOT 3
- XSLT: system-property('xsl:xpath-version')
- fn:format-dateTime: Properties
- fn:json-to-xml: `number-parser` option HOT 1
- `??type(T)` in lookup expressions - shortcuts
- for member allowing empty HOT 2
- Allow sequence constructor in extension instructions that are implemented with named templates HOT 1
- Add a new function `fn:html-doc` HOT 2
- XSLT: add xsl:switch to list of instructions within which whitespace is ignored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtspecs.