Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After generally-supportive discussion in #680, I wanted to see how feasible it is to make
Quantity <: Real
without breaking changes. It required few specialized changes, and basically all tests aside from logarithmic and affine pass (I just didn't touch them at all).Overall I'm pretty positive that this change can be done without modifying tests at all (aside from those that check for specific subtyping of course), so no breaking changes.
Almost no special complex-of-quantity handling was required here, and working with complex units remain convenient with the same syntax.
Let me know if something along these lines can be accepted to
Unitful
, after updating the remaining parts so that all tests pass (currently some are commented out).