"Const" is confusing #3529
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
Milestone
In Rust,
const
means several things:const
items (document const items #3341)const
kind (Add deep const kind #2421), which represents deep immutabilityconst
pointers, which can point to mutable or immutable data, but cannot be used to mutate itI think
const
pointers are the most confusing and should be renamed to something else (perhapsread
pointers). This confusion may have contributed to the unsoundness fixed in 5d540de#L7L1206The text was updated successfully, but these errors were encountered: