Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
runiq
on Aug 30, 2024
|
parent
|
context
|
favorite
| on:
Rust's Ugly Syntax (2023)
If you think of it as 'a implements b', it makes sense for both lifetimes and (other) subtypes: If lifetime `a` implements `b`, it is obviously valid for `b` (and maybe longer).
LoganDark
on Aug 30, 2024
[–]
I always do `<T, U extends T, V extends U>` etc for generics, but for lifetimes it's `<'a: 'b, 'b: 'c, 'c>` which
always
trips me up...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: