I've been experimenting with a little compile-time bounds-checking vector implementation built upon the typenum crate in Rust: https://github.com/jblondin/vector . It's not particularly useful at the moment, but a fun experiment with types
I will have a look afterwards! How does it feel to use typenum to get hackish const generics?
-
-
You mean the specific const-value hack I used here, or using typenum in general? I'm a big fan of typenum, I used it for my heterogeneous list implementation in agnes
-
Typenum in general. Lady time checked the error messages could get quite hard to parse, especially for a beginner.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Writing about stuff to learn how it works, mostly in Rust.
Lead Engineer at