stewartmatheson / projectx

0 stars 1 forks source link

Const all the things #37

Closed msbit closed 3 years ago

msbit commented 3 years ago

Move a bunch of things over to const.

stewartmatheson commented 3 years ago

I'm always forgetting const.

msbit commented 3 years ago

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 :)