This is a good idea. Macro-like things are also very related to the compile-time constant features as well. Unfortunately there have been many ideas for compile-time constants and they've all failed spectacularly (this is the most recent instance).
I don't want this feature to suffer from having to figure out compile-time constants first, but just want to mention it ![]()