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

Make (Un)HideGlobalVariables obsolete #3185

Merged
merged 1 commit into from
Jan 18, 2019

Conversation

fingolfin
Copy link
Member

These functions were never documented, and so far in all cases where they
appear, there seem to be better, more robust alternatives, such as reading and
evaluating external code inside a function context with suitable locals set,
or by adapting the (interface to) the external code.

IMHO, their existence promotes bad code design, which is why I'd like to make them obsolete and eventually remove them.

These functions were never documented, and so far in all cases where they
appear, there seem to be better, more robust alternatives, such as reading and
evaluating external code inside a function context with suitable locals set,
or by adapting the (interface to) the external code.
@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 labels Jan 17, 2019
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0006%) to 84.878% when pulling 7640d60 on fingolfin:mh/HideGlobalVariables into e0ac2e5 on gap-system:master.

@codecov
Copy link

codecov bot commented Jan 17, 2019

Codecov Report

Merging #3185 into master will decrease coverage by 0.04%.
The diff coverage is 21.12%.

@@            Coverage Diff             @@
##           master    #3185      +/-   ##
==========================================
- Coverage   84.79%   84.74%   -0.05%     
==========================================
  Files         687      688       +1     
  Lines      330800   335877    +5077     
==========================================
+ Hits       280514   284653    +4139     
- Misses      50286    51224     +938
Impacted Files Coverage Δ
lib/global.gi 83.92% <ø> (+25.17%) ⬆️
lib/global.gd 100% <ø> (ø) ⬆️
lib/obsolete.gd 98.38% <100%> (+0.05%) ⬆️
lib/obsolete.gi 22.11% <18.84%> (-0.62%) ⬇️
src/vector.c 92.73% <0%> (-5.01%) ⬇️
src/hookintrprtr.c 67.34% <0%> (-4.88%) ⬇️
src/lists.c 76.55% <0%> (-4.06%) ⬇️
src/vecffe.c 71.02% <0%> (-3.42%) ⬇️
src/iostream.c 63.49% <0%> (-3.17%) ⬇️
src/sysfiles.c 41.24% <0%> (-3.1%) ⬇️
... and 82 more

@ChrisJefferson
Copy link
Contributor

I agree this has always been super weird.

@fingolfin fingolfin merged commit 2adb187 into gap-system:master Jan 18, 2019
@fingolfin fingolfin deleted the mh/HideGlobalVariables branch January 18, 2019 15:38
@fingolfin fingolfin 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 Aug 21, 2019
@olexandr-konovalov olexandr-konovalov added this to the GAP 4.11.0 milestone Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

4 participants