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

Eliminate some const #56

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Eliminate some const #56

merged 1 commit into from
Apr 2, 2024

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Mar 31, 2024

I didn't identify a compelling reason that const is being used for all these, other than for the sake of demoing const, which I think is a disservice to learners — if there is some language feature we feel the need to demonstrate to them, we should add functionality to ferris-says for which that language feature is the best solution, rather than putting in a contrived use that is best expressed a different way.

@lcnr
Copy link
Contributor

lcnr commented Apr 2, 2024

using named consts here is less readable 👍

@lcnr lcnr merged commit df293b9 into rust-lang:main Apr 2, 2024
5 checks passed
@dtolnay dtolnay deleted the const branch April 2, 2024 03:22
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