A lifetime keyword would actually go a long way in improving ergonomics. You could even make it synonymous with '. Then people can choose. Maybe one will get much more traction and the other can be deprecated.
The only calls to change the lifetime syntax have been coming from "outside the house". Rust developers are fine using the ' as the lifetime sigil and there are no calls from within the Rust community to change it. Adding a keyword would increase the verbosity substantially.
When is someone a Rust developer and why do you assume that I am not one?
edit: -4 points on my parent comment for a totally valid opinion, not violating any commenting guide line (please enlighten me). However, for the down voters: "Please don't use Hacker News for political or ideological battle. That tramples curiosity."
That's the trade off isn't it. ' is unnecessarily short and doesn't convey any information at all, or worse, the wrong information. There are other comments that point out that ' is valid in identifier, or used to indicate that something is derived from something else.
Some will prefer the short nature of just typing ', where people like me would prefer that you just add a few more characters so it reads more easily.
treyd|1 year ago
jeroenvlek|1 year ago
edit: -4 points on my parent comment for a totally valid opinion, not violating any commenting guide line (please enlighten me). However, for the down voters: "Please don't use Hacker News for political or ideological battle. That tramples curiosity."
kitkat_new|1 year ago
It makes type information unnecessarily longer without adding information, and feels like writing "end_stm" instead of ";" after every line
mrweasel|1 year ago
Some will prefer the short nature of just typing ', where people like me would prefer that you just add a few more characters so it reads more easily.
Brian_K_White|1 year ago
enum foo; blah ...;