-
Notifications
You must be signed in to change notification settings - Fork 126
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
Make is_exterior_power
(and friends) internal
#3346
Make is_exterior_power
(and friends) internal
#3346
Conversation
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.
Sorry, but I do not like this personally. Another example: divides
returns (::Bool, ::RingElem)
but noone ever considered calling this divides_with_data
. If it is decided from some editorial board that we really want this, I will not stand in the way [*]. But at the same time, I do not see myself voluntarily approving this PR.
[*] If this was decided already, could you point me to where that decision is documented? Then I am happy to approve this PR.
Edit: Also, I consider this to be a rather internal function. So shortness of the name wins for me against name being all explanatory.
There were some discussions about this time of functions in some of the past coding sprints (see the note here: https://hackmd.io/nRnyfrSxTVe5CzXidB1cBQ?both#functions-which-check-and-potentially-return-values), but there hasn't been a definite decision as far as I can remember. Then maybe let us take this as a concrete example for the future of the broad set of |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #3346 +/- ##
==========================================
+ Coverage 81.82% 81.84% +0.02%
==========================================
Files 556 556
Lines 74334 74361 +27
==========================================
+ Hits 60822 60864 +42
+ Misses 13512 13497 -15
|
My take
|
Consensus: bad names. This is only testing if an object was created this way. Maybe:
|
Should Anyway, I think my preference would then be to make these functions internal (I.e. Add a underscore and remove the export). Would this be fine with you (and your book chapter) @HechtiDerLachs? |
Bump |
Yes, that is OK for me. I can adjust this in my parts of the code then. |
I'll adapt this PR to reflect this |
0764e44
to
5b69bca
Compare
Please have a look at the module code @HechtiDerLachs, the Lie algebra code is fine if the tests pass |
is_exterior_power
to is_exterior_power_with_data
(and friends)is_exterior_power
(and friends) internal
Bump |
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.
Looks fine. Thanks.
### Backported PRs - [x] #3367 - [x] #3379 - [x] #3369 - [x] #3291 - [x] #3325 - [x] #3350 - [x] #3351 - [x] #3365 - [x] #3366 - [x] #3382 - [x] #3373 - [x] #3341 - [x] #3346 - [x] #3381 - [x] #3385 - [x] #3387 - [x] #3398 - [x] #3399 - [x] #3374 - [x] #3406 - [x] #2823 - [x] #3298 - [x] #3386 - [x] #3412 - [x] #3392 - [x] #3415 - [x] #3394 - [x] #3391
As this does return not only a bool, we should consider this (or a similar) rename. We can then, at a later point, introduce a new
is_exterior_power
function that only returns the bool.I already did the same change for other types of power Lie algebra modules. This is not as important right now, as that code resides in
experimental/
. But exterior powers of modules are insrc/
. What do you think about this change @HechtiDerLachs ?EDIT: In the below discussion it was decided to instead make the functions internal