Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bartwe
on Nov 24, 2022
|
parent
|
context
|
favorite
| on:
Porting 58k lines of D and C++ to Jai
c# got this right, enforcing the lifetime of Span<>
BenFrantzDale
on Nov 24, 2022
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: