Too much kw::Empty
usage
#137978
Labels
A-technical-debt
Area: Internal cleanup work
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
kw::Empty
is the name of the emptySymbol
. It's used a lot. Most places it's used, it's hard to tell if it means "empty symbol" or "no symbol". I.e. it more or less reinvents the null pointer, something that Rust was supposed to get rid of.I think a lot of the uses could be removed by using
Option<Symbol>
instead ofSymbol
, making the "no symbol" cases much clearer.The text was updated successfully, but these errors were encountered: