I'm noticing that even with macros (as they are currently defined), there's still a lot of repetition in the color theme JSON file I'm prototyping with, for example:
Here I'm saying that I want to use the $colorize macro with three different arguments for the first parameter, so without batching this would look like this (notice the array):
Obviously we can accomplish the same thing with both patterns, but the batching is much nicer to maintain in this context.
Also, the reason we have arrays of parameters is for multiple arguments:
A note about using % -- it's already a special delimiter and is also associated with parameters, so I'm thinking it conceptually makes sense. The ? would need to be a new special delimiter, so it's one more character that cannot be used in a bare string.
I'm noticing that even with macros (as they are currently defined), there's still a lot of repetition in the color theme JSON file I'm prototyping with, for example:
In some ways the macros help, but they haven't fully solved the problem of eliminating unwieldy repetition.
Maybe a batching functionality would fix this? Here's my initial idea for this pattern:
Here I'm saying that I want to use the
$colorize
macro with three different arguments for the first parameter, so without batching this would look like this (notice the array):Obviously we can accomplish the same thing with both patterns, but the batching is much nicer to maintain in this context. Also, the reason we have arrays of parameters is for multiple arguments:
A note about using
%
-- it's already a special delimiter and is also associated with parameters, so I'm thinking it conceptually makes sense. The?
would need to be a new special delimiter, so it's one more character that cannot be used in a bare string.