4 ms·
Well, here comes the type system, so your fancy data structure has zero cost. Rust recently got more support for const generics, so you could encode size bounds
by oleganza 5y ago
Well, here comes the type system, so your fancy data structure has zero cost. Rust recently got more support for const generics, so you could encode size bounds right in the types and skip unnecessary checks.
- spullara 5y agoOh that is what I was saying about Rust. I don't think that is possible in C, at least not without a huge amount of effort.