Comments (3)
I would tend to close this issue (and keep #689 open). I suppose we’d need to introduce much stricter optimization rules in the specification to achieve reasonable results across multiple processors.
from qtspecs.
I’m still hesitant if we should include this function to the standard. I clearly see reasons for having a stack trace function, but we may (at this stage) need to consider numerous implementation-specific questions:
Code may be rewritten a lot by a processor before it’s eventually executed, and it’s often difficult to preserve the original location of a former expression (in particular, the column number), even if we ignore function inlining. An arbitrary example:
(: original query :)
some $s in
(1, 2, 3)
satisfies
$s > 1
(: rewritten query :)
((1 to 3) ! (. >= 2)) = true()
Rewritings could generally be suppressed if a stack-trace call is found in a sub expression, but this would change the way how a query is executed, and may lead to heisenbugs (and I assume the main reason for using this function is for debugging purposes).
from qtspecs.
The CG agreed to close this issue without action at meeting 065
from qtspecs.
Related Issues (20)
- 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
- Add decimal-divide function
- fn:apply() - contradiction in spec
- Could the labeling of grammar productions be improved? HOT 1
- Schema validation in XPath
- Add xsl:value-of/@as attribute HOT 2
- Generalize for-each-pair to work with any number of input sequences
- Further refinement of fn:round() HOT 1
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.