Y
Hacker News
new
|
ask
|
show
|
jobs
by
nicoburns
2429 days ago
Once const-generics are released, I feel like you should be able to create your own "fixed-size slice" type, which uses the constant parameter for "bounds checking". I imagine that would be a lot more optimiser-friendly...