The best feature of Rust is that I’m allowed to name a variable “class”
-
-
But it's still fair to do that analysis, based presumably on some measure of the relative and minimal complexity of discovering "tpe" vs typing backticks. Humans are very bad at multiplying very big numbers and very small numbers, generally...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I will offer that by the time you encounter tpe its naming is the least of your problems.
-
Yes, when you've come down to the optimization of renaming tpe to `type`, you're basically rearranging the deckchairs of method names on the Titanic of your codebase.
- Show replies
New conversation -
-
-
Might be off topic, but every single time I’ve felt the urge to call a field `type`, I was wrong and the better implementation was a type parameter in the parent type.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Not exactly, in my opinion. Everyone has the cost of learning _once_ that tpe = type, compared to everyone _always_ having the cost of typing the backticks (as well as teaching newcomers about backtick escaping.)
-
But I think there's a difference in the value of those two things which need to be learned: backtick-escaping is a language feature which is generally useful to know; a transferable skill. But tpe = type is arbitrary knowledge, which can't be reliably applied elsewhere.
- Show replies
New conversation -
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.
