Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't think that's quite a 1-to-1 match for what's described in the article. Both C#'s Span<T> and your span type are type- and bounds-safe, but the former has additional restrictions placed on its usage thanks to the `ref` keyword that guarantee that it will be free of lifetime errors as well without needing to involve the runtime.


True, that part is different and not safe in C. Lifetime is something that will need new language extensions / annotations.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: