The best feature of Rust is that I’m allowed to name a variable “class”
-
-
-
r#type to the rescue!
4 replies 0 retweets 10 likes -
Interesting how ructc uses "ty" while scalac uses "tpe".
1 reply 1 retweet 2 likes -
-
Embrace the backticks. We should use "`type`"!
2 replies 1 retweet 5 likes -
Replying to @propensive @dwijnand
why am I not surprised that this is coming from you
1 reply 0 retweets 3 likes -
Maybe because I've been saying for years, a) features exist so they can be used, and b) arbitrary choices (e.g. choice of abbreviation) are not intuitive, while taking the uniquely obvious option, even if it's slightly inconvenient, is.
2 replies 0 retweets 11 likes -
Replying to @propensive @larsr_h
How many times and across how many people are you willing to multiple that "slightly inconvenient" before you consider the alternative (teaching newcomers that "tpe" means "type") a better trade-off?
2 replies 0 retweets 2 likes -
The trade-off is on the learning curve, for the benefit of the uninitiated and to the detriment of the experienced. Everyone has the cost of learning that tpe = type, but only the subset who use it extensively feel the cost of typing the backticks.
4 replies 0 retweets 3 likes
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...
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.