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

They do. You can.

You have procedural macros, which are literally "Rust code is the input, which you write rust code to manipulate, and output more rust code".

You have const fns, which are interpreted at compile time, and are closer to what you're referring to.




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

Search: