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

For the subcase where the literals are all members of a same overarching type (like your "MyRange" example), there has been some experimentation in this direction in Rust: https://github.com/rust-lang/rust/pull/107606


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

Search: