Comments (5)
A good summary.
Would being bold mean that <x>3.1</x>[. = 3.1]
would return no more result in the future? If the answer is yes, could we be even bolder and convert untyped atomics to decimals (instead of doubles)?
from qtspecs.
(a) Yes, and (b) yes, that would be even bolder - and would no doubt lead to a further batch of compatibility problems.
I have started thinking about whether it might be possible to have an "arithmetic mode" in the dynamic context, set to either "double" or "decimal", used to control all of these things. But it's a big sledgehammer: would people have fewer problems than they had before, or would we just introduce new problems?
from qtspecs.
(a) Yes, and (b) yes, that would be even bolder - and would no doubt lead to a further batch of compatibility problems.
In that case, I’d tend to be timid (to be very bold, I know too less about the further batch), and I’d tend to avoid new (explicit) options. As we talk about fairly fundamental features, I assume it would make everyone’s life more difficult.
would people have fewer problems than they had before,
Aside from the (now ancient) confusion over implicit double conversions, I was not aware of the problems myself. Do you think they could be summarized to assess their seriousness?
Looking forward to other opinions as well.
from qtspecs.
Well, apart from the usability problems caused by the fact that people don't understand floating-point arithmetic, I think the number one issue we are trying to solve is the transitivity problem. That primarily affects grouping and sorting, and we could try to limit the compatibility hit by only making changes to the places that are most directly affected: distinct-values(), group by, order by etc. Alternatively, we could restrict these so that mixed numeric types aren't allowed (or are treated as always distinct).
Looking at the list, I think it's probably deep-equal that has opened the can of worms, because we use it both in places where strict transitivity is needed, and in places where a "more forgiving" equality test is desirable. Perhaps if deep-equal() had an option to control numeric comparison, life would be a bit easier?
from qtspecs.
Perhaps if deep-equal() had an option to control numeric comparison, life would be a bit easier?
That could be an “option” indeed (given that we already have so many other options now… And I assume that most people won’t care anyway).
from qtspecs.
Related Issues (20)
- XQFO Code in the Rules sections HOT 7
- fn:subsequence-where: equivalent `fn:slice` expression HOT 2
- Reinstate subsequence-before HOT 1
- regular expressions - whitespace HOT 6
- regular expression addition - word boundaries HOT 1
- How to invert a predicate function HOT 16
- QT4CG-064-03, QT4CG-064-04: Examples, Return type of `fallback`
- fn:transform() improvements
- [XSLT] Need to say what happens when a capturing accumulator rule matches a non-element node HOT 4
- Predicates, sequences of numbers: Feedback HOT 2
- Identify optional arguments in callback functions HOT 41
- Add position argument to scan-left and scan-right HOT 3
- fn:reduce (or fn:fold without initial value) HOT 5
- character sequence constructor 'a' to 'z' HOT 21
- Transitive closure on non-nodes HOT 2
- Invisible-xml - missing details HOT 1
- Invoking maps & arrays: allow sequences? HOT 5
- regular expression addition - lookbehind assertions and lookahead assertions HOT 2
- regular expression addition - comments HOT 4
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.