Open premun opened 1 year ago
@thomhurst do you think this would bring some value?
It'd definitely be useful. It's similar to what I was trying to do before with the CompileTimeVariable and RuntimeVariable, but we found it just added complication.
If we could somehow do that while still keeping things simple, it's be great, but I'm not sure the best way to do that
Context
There is a third column in this table that hints that not all variables are available when processing template parameters.
This table tells you whether you're allowed to pass that particular variable in the template compile-time expression. From the docs:
Proposal
I don't have a clear idea of whether we could encode this information into the type system and prevent people using variables in the some places but logging this issue so it doesn't get forgotten.