News for hackers. Stuff that matters.
Re:Rust: A Unique Perspective by alpaca128 on Friday February 10, 2023 @06:46PM (#34747674)
Even immutable variables can be just redefined/shadowed. You can't do that with constants.
Re:Rust: A Unique Perspective by tuukkah on Saturday February 11, 2023 @02:37AM (#34750388)
Usually, you think of the shadowing variable and the shadowed variable as different variables though. They just happen to use the same variable name.