r/cpp
•
u/steveklabnik1
•
Oct 24 '24
•
1
Why Safety Profiles Failed
https://www.circle-lang.org/draft-profiles.html
180
Upvotes
View all comments
Show parent comment
7
u/[deleted] Oct 25 '24
That is more or less how borrow checker works. But, rather than "lifetimeof/lifetimeas", it simply uses generics. Lets just assume a new syntax extension, where an identifier starting with
%represents a lifetime.