A recent tweet by @raganwald pushed me over the edge: I’ve switched from “const only for 100% immutable things” to “const whenever possible”
-
-
`const` looks useful and sophisticated, but is of little actual value.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Good point, I kind of struggle with that from time to time, i.e. in that mode it just feels a little bit wrong to mutate function params.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
We lint against param reassignment also
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.