Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
runiq
· 2y ago · 0 comments
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).
Comments
[–]
LoganDark
2y ago
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...