you are viewing a single comment's thread
view the rest of the comments
[–] 25 points 1 year ago

I mean should const not be the default? I do want to mutate objects sometimes but usually I just need a view of it's state and not write access. It also makes mutable data a lot more obvious if whoever wrote the code your reading wasn't putting const on stuff they should have been. Seems like something all languages with const semantics should have done

  • source
  • parent