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

Study changes to t/cmd/*.t and t/opbasic/*.t #200

Closed
jkeenan opened this issue Aug 17, 2020 · 8 comments
Closed

Study changes to t/cmd/*.t and t/opbasic/*.t #200

jkeenan opened this issue Aug 17, 2020 · 8 comments
Assignees
Labels
study Study changes made by developers since 5.32.0

Comments

@jkeenan
Copy link
Collaborator

jkeenan commented Aug 17, 2020

In this ticket we will study our progress in pursuit of Objective 2, "strict-by-default", for the following files in the Perl core distribution:

t/cmd/elsif.t
t/cmd/for.t
t/cmd/mod.t
t/cmd/subval.t
t/opbasic/arith.t
t/opbasic/cmp.t
t/opbasic/concat.t

These files should be evaluated in light of the guidelines presented on this wiki page. Please post the summary of your findings in a single comment in this issue.

First-time contributors: Please post a comment to this ticket indicating you are working on it. That will enable us to assign the ticket to you. (GitHub won't let us do that until it already thinks you're part of the project.)

Thank you for helping to improve the Perl programming language.

@jkeenan jkeenan added the study Study changes made by developers since 5.32.0 label Aug 17, 2020
@rabbiveesh
Copy link
Contributor

I would love to work on this issue.

@atoomic
Copy link
Owner

atoomic commented Aug 17, 2020

@rabbiveesh thanks for your interest, this case is now yours :-)

@jkeenan
Copy link
Collaborator Author

jkeenan commented Aug 20, 2020

I would love to work on this issue.

@rabbiveesh In light of discussion in another ticket, I'm trimming the list of files to be studied in this ticket. Please let us know if you have any questions.

Thank you very much.
Jim Keenan

@rabbiveesh
Copy link
Contributor

rabbiveesh commented Sep 2, 2020

Everything in t/cmd/* and t/opbasic/*, as listed above, is totally correct in its strict compliance.

Some of the tests are using lexical $a, which I noticed got changed to $alpha in t/opbasic/concat.t. Is part of this goal to not use magical globals as lexicals, or is that a side issue?

@jkeenan
Copy link
Collaborator Author

jkeenan commented Sep 2, 2020

Everything in t/cmd/* and t/opbasic/*, as listed above, is totally correct in its strict compliance.

Some of the tests are using lexical $a, which I noticed got changed to $alpha in t/opbasic/concat.t. Is part of this goal to not use magical globals as lexicals, or is that a side issue?

We have been trying to replace those magical globals with better named variables, as you spotted. This is something we decided to do only when we were a couple of weeks in to this project.

So if you'd like to submit a pull request for the remaining instances of $a and $b in your two directories, we'd gladly consider it.

Thank you very much.
Jim Keenan

@jkeenan
Copy link
Collaborator Author

jkeenan commented Oct 10, 2020

Everything in t/cmd/* and t/opbasic/*, as listed above, is totally correct in its strict compliance.

Some of the tests are using lexical $a, which I noticed got changed to $alpha in t/opbasic/concat.t. Is part of this goal to not use magical globals as lexicals, or is that a side issue?

@rabbiveesh, do you have any further comments for this ticket? If not, we'd like to close it. Please let us know within three days.

Thank you very much.
Jim Keenan

@rabbiveesh
Copy link
Contributor

Yeah, sorry, please go ahead and close. I'll submit a PR independent of this issue.

@jkeenan
Copy link
Collaborator Author

jkeenan commented Oct 18, 2020

P.r. accepted; closing ticket.

Thank you very much.
Jim Keenan

@jkeenan jkeenan closed this as completed Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
study Study changes made by developers since 5.32.0
Projects
None yet
Development

No branches or pull requests

3 participants