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

Rust's "associated constants" are a very similar feature. You can also do runtime checked ranged integer types, and compile-time checked ones, though that's very awkward at the moment. It'll get un-awkward at some point; an implementation of the feature needed is in nightly.


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

Search: