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

Move property initialization out of constructors #275

Merged
merged 5 commits into from
Jan 18, 2023
Merged

Conversation

willeastcott
Copy link
Contributor

Small refactor to bump class property initialization from the constructor up to where the property is declared. This is more succinct and normally means you can drop the type if the value is a literal.

@willeastcott willeastcott added the enhancement New feature or request label Jan 16, 2023
@willeastcott willeastcott requested a review from a team January 16, 2023 16:11
@willeastcott willeastcott self-assigned this Jan 16, 2023
@willeastcott willeastcott merged commit 2a8db03 into main Jan 18, 2023
@willeastcott willeastcott deleted the initializers branch January 18, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants