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

Use ifNil: ifNotNil: and ifNil:ifNotNil: instead of isNil and ifTrue/… #3967

Merged
merged 1 commit into from Jul 17, 2019

Conversation

gcotelli
Copy link
Member

…ifFalse combinations

@jecisc
Copy link
Member

jecisc commented Jul 16, 2019

For some of them we can improve further because sometimes a temporary variable is created and then we test it is not nil. We could just use the argument of the #ifNotNil: block.
But that might be done in another PR :)

Copy link
Member

@jecisc jecisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading the code this seems good. If tests pass we can merge :)

@gcotelli
Copy link
Member Author

@jecisc I will do a first pass with this rewrites doing a PR per package group, and in a second pass we can detect such cases and improve them more

@MarcusDenker MarcusDenker merged commit 0d2292d into pharo-project:Pharo8.0 Jul 17, 2019
@gcotelli gcotelli deleted the useIfNilOnASTPackages branch July 17, 2019 12:32
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.

None yet

3 participants