🦀 Rust question - What's with the quotes here?
impl<'a, 'r> FromRequest<'a, 'r> for User {
Conversation
The designers of Rust wanted to make sure people subsconsciously considered it ugly, to protect it from the curses of pride and vanity, so they added syntax that would be parsed incorrectly as a typo by automatic highlighters.
Oh, are we not doing a “wrong answers only”…?
1
1
The reason for the ' sigil in ML-land was to let you skip writing a quantifier (‘<…>’ here, ‘forall’ there), the same reason that Haskell has ‘Types’ vs. ‘typeVariables’. In Rust it’s a redundant indicator of the “lifetime” kind that mainly helps produce better error messages.
1
2
Some historical links from when the the syntax for lifetimes was changed from `</T` - can't remember what it used to look like in type parameter lists:
- mail.mozilla.org/pipermail/rust
- mail.mozilla.org/pipermail/rust


