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 var keyword where new objects are assigned to local variables #398

Merged
merged 1 commit into from
May 12, 2022

Conversation

sebthom
Copy link
Member

@sebthom sebthom commented May 12, 2022

I am using the var keyword in places where it does not decrease code comprehensibility and where the type of the declared variable is obvious.

I did not replace types with the var keyword where the values assigned are the results of chained method calls on some object because this increases cognitive load when reading/comprehending the code.

@mickaelistria mickaelistria merged commit 48ed670 into eclipse-tm4e:master May 12, 2022
@sebthom sebthom deleted the patch-04 branch May 13, 2022 13:29
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.

2 participants