Skip to content
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

Add QUO and LQUO methods for IsJuliaObject, improve tests #135

Merged
merged 2 commits into from
Nov 6, 2018

Conversation

fingolfin
Copy link
Member

@fingolfin fingolfin commented Nov 6, 2018

This deliberately ignores the differences between / and // on the Julia side, just like we did with the / and \ Julia convenience method which call QUO and LQUO. This means that dividing Julia integers produces Julia floats. While GAP users may initially find this confusing, I think it is by far the easiest and least problematic approach to the problem. Any attempts to shoehorn GAP semantics onto Julia objects (e.g. by being "clever" and having / in GAP call either Julia's / or //, depending on the input) IMHO is doomed to failure.

@fingolfin fingolfin requested a review from sebasguts November 6, 2018 09:36
@codecov
Copy link

codecov bot commented Nov 6, 2018

Codecov Report

Merging #135 into master will increase coverage by 0.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #135      +/-   ##
==========================================
+ Coverage   54.28%   54.33%   +0.05%     
==========================================
  Files          44       44              
  Lines        2590     2593       +3     
==========================================
+ Hits         1406     1409       +3     
  Misses       1184     1184
Impacted Files Coverage Δ
JuliaInterface/gap/arith.gi 96.96% <100%> (+0.3%) ⬆️

@sebasguts sebasguts merged commit 49d0cf2 into oscar-system:master Nov 6, 2018
@fingolfin fingolfin deleted the mh/QUO branch November 6, 2018 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants