Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bartwe
· 4y ago · 0 comments
c# got this right, enforcing the lifetime of Span<>
Comments
[–]
BenFrantzDale
4y ago
I keep considering writing a `unique_span` and `shared_span`. Really `span` or (a type it’s based on) should have been templated on the pointer type, so a `span<shared_ptr<const T[]>>` for example.