Hacker News new | past | comments | ask | show | jobs | submit login

This is going to happen at some point now that const generics arrived.



Likely only once we finally get const parameters specified as regular arguments.

It doesn’t need const at all, though. You just need three traits and either first class enum variants as types or a pseudo enum (mod/struct Ordering with ZST structs Acquire, Release, etc)




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

Search: