-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mixed Decimal/Float operations throw error or attach warning #10725
Merged
Merged
Changes from 35 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
e6cdaf6
WIP idea.
jdunkerley 5ecd4bb
typo
GregoryTravis 23411ee
merge
GregoryTravis 9b3556a
Merge branch 'jd-tmp' into gmt-tmp
GregoryTravis cdb246b
tests, keep original float
GregoryTravis 6df2066
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis c0fd213
mark == warning test pending
GregoryTravis 819d589
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis a7ad2f9
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis 50d1a2b
fix test
GregoryTravis a542114
add IA to add ret err
GregoryTravis 80337ed
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis b82a81a
fix for warning-attached Equals
GregoryTravis d2834bc
other operators, remove return types
GregoryTravis 3e88b37
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis c4ae795
fix tests
GregoryTravis 2bf1ed0
fix tests
GregoryTravis 43a6c25
cleanup
GregoryTravis fd88c52
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis 6508485
fix tests
GregoryTravis 67d577b
changelog
GregoryTravis 95fc4ae
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis 9107cb2
most pass
GregoryTravis 6b44dde
tests pass
GregoryTravis 0446614
better error, do not need warning_if_from_float
GregoryTravis c1836f9
more attach_loss_of_numeric_precision
GregoryTravis 7fcc5e6
doc
GregoryTravis 0b00b8e
dec docs and test
GregoryTravis 66048a8
cleanup
GregoryTravis ca14b2b
todo for return type issue
GregoryTravis 655a267
typo
GregoryTravis ff92f45
warnings lib
GregoryTravis 9ce1a0a
remove modified Float.to
GregoryTravis da6a3d5
private
GregoryTravis ab8e863
fmt
GregoryTravis 3775568
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis 4c960a6
merge, changelog
GregoryTravis 2cd4d63
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis 1381d29
remove private from Decimal ctor, merge
GregoryTravis cd6c243
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis 7f02ed1
fmt
GregoryTravis ed356d5
move constructor test to Base_Internal_Tests
GregoryTravis 6eac98d
put return types back
GregoryTravis ba8550c
Merge branch 'develop' into wip/gmt/10631-mixed-err
GregoryTravis 3110355
missing import
GregoryTravis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
286 changes: 225 additions & 61 deletions
286
distribution/lib/Standard/Base/0.0.0-dev/src/Data/Decimal.enso
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is better than
instanceof
. The effect on benchmark results remain to be seen. Possibly one could also use BranchProfile to lower the number of generated IR nodes in case without warnings.