Closed msbit closed 3 years ago
I'm always forgetting const.
Yeah the mutability story is one area where more modern languages have gotten things right, like Swift treating them as equal concepts (needing to specify let
vs var
so you may as well choose let
for the same amount of ceremony), or Rust defaulting to immutable, unless you decorate the initial binding with mut
.
Having to add all this const
decoration is sometimes very annoying :)
Move a bunch of things over to
const
.