Scaml: Apply as many filters as possible at compile time
Scaml is applying filters at runtime. If no interpolation is being done, then the filter input is a string litteral, it might make more sense to run the filter at compile time against the litteral and compile in the filter result so that it does not need to get executed a runtime.
But since a filter could be dynamic (inserting stuff like the current date or a counter), then this optimization would need some kind of hint to know if it can be performed.
But since a filter could be dynamic (inserting stuff like the current date or a counter), then this optimization would need some kind of hint to know if it can be performed.
Leave a comment