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

Deprecate undocumented extra arguments for DeclareGlobalFunction and InstallGlobalFunction #3694

Merged
merged 1 commit into from
Oct 9, 2019

Conversation

fingolfin
Copy link
Member

The extra argument was never documented for InstallGlobalFunction. In
contrast, for DeclareGlobalFunction, the documentation for a long time
claimed that it required exactly (!) two arguments, although all
examples only showed one argument, and the documentation never said what
the other argument was supposed to do. Various people then made
differing guesses as to the supposed meaning of the extra arguments:
some put in an info string; some put in a list of input filters; some
just a single filter. This PR removes several of these from the GAP
library itself.

Various packages still use these extra arguments, and loading them will
trigger the warnings. Some already fixed it in their repositories and
just need to make releases. When the time comes for releasing GAP 4.12,
we can see if all packages are adapted, and then depending on that
either turn the warning into an error; or conversely, increase the
warning level to 2, to hide it from regular users who might be confused
by the message.

The extra argument was never documented for `InstallGlobalFunction`. In
contrast, for `DeclareGlobalFunction`, the documentation for a long time
claimed that it required exactly (!) two arguments, although all
examples only showed one argument, and the documentation never said what
the other argument was supposed to do. Various people then made
differing guesses as to the supposed meaning of the extra arguments:
some put in an info string; some put in a list of input filters; some
just a single filter. This PR removes several of these from the GAP
library itself.

Various packages still use these extra arguments, and loading them will
trigger the warnings. Some already fixed it in their repositories and
just need to make releases. When the time comes for releasing GAP 4.12,
we can see if all packages are adapted, and then depending on that
either turn the warning into an error; or conversely, increase the
warning level to 2, to hide it from regular users who might be confused
by the message.
@fingolfin fingolfin added topic: library release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes kind: quirk Issues that are not bugs, but a discrepancy between user expectation and system behavior labels Oct 7, 2019
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0006%) to 84.477% when pulling 748c74b on fingolfin:mh/globalfunc-args into cd9d598 on gap-system:master.

@olexandr-konovalov
Copy link
Member

@fingolfin for most packages this should only break their tests, but there is a case when it broke the bugfix test for the core GAP system when GAP is loaded with -A option: https://travis-ci.org/gap-infra/gap-docker-master-testsuite/jobs/599991524. I have requested new Crisp release in bh11/crisp#4

@fingolfin
Copy link
Member Author

? Fixing that requires no crisp release, just some trivial modifications to that tst file to tweak info levels

olexandr-konovalov pushed a commit to olexandr-konovalov/gap that referenced this pull request Nov 6, 2019
After gap-system#3694, a warning
`DeclareGlobalFunction: too many arguments` is shown when Crisp
is loaded.
@olexandr-konovalov
Copy link
Member

Submitted #3726 to silence the warning in the bugfix test.

olexandr-konovalov pushed a commit to olexandr-konovalov/gap that referenced this pull request Nov 7, 2019
After gap-system#3694, a warning
`DeclareGlobalFunction: too many arguments` is shown when Crisp
is loaded.
olexandr-konovalov pushed a commit that referenced this pull request Nov 7, 2019
After #3694, a warning
`DeclareGlobalFunction: too many arguments` is shown when Crisp
is loaded.
@PaulaHaehndel PaulaHaehndel self-assigned this Feb 17, 2021
@PaulaHaehndel PaulaHaehndel added release notes: added PRs introducing changes that have since been mentioned in the release notes and removed release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Feb 17, 2021
@PaulaHaehndel PaulaHaehndel removed their assignment Feb 17, 2021
@fingolfin fingolfin added the kind: removal or deprecation A feature was removed or deprecated / made obsolete label Aug 17, 2022
@fingolfin fingolfin changed the title Deprecate undocumented extra arguments for DeclareGlobalFunction and InstallGlobalFunction Deprecate undocumented extra arguments for DeclareGlobalFunction and InstallGlobalFunction Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: quirk Issues that are not bugs, but a discrepancy between user expectation and system behavior kind: removal or deprecation A feature was removed or deprecated / made obsolete release notes: added PRs introducing changes that have since been mentioned in the release notes topic: library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants