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

Methods in Simplifier.cs that only access read-only members were made readonly #615

Closed
wants to merge 1 commit into from

Conversation

Lehonti
Copy link
Contributor

@Lehonti Lehonti commented Sep 4, 2023

By doing this, the compiler enforces that no members will be modified by simply calling the method

@WhiteBlackGoose
Copy link
Member

As far as I see these structs don't have anything to mutate anyway

@Happypig375
Copy link
Member

Why don't you also mark the struct as readonly then

@WhiteBlackGoose
Copy link
Member

Either way works... and doesn't change anything XD

@Lehonti Lehonti closed this by deleting the head repository Oct 5, 2023
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.

3 participants