The addition of function macros has changed the future of functions forever - I believe it is the single most revolutionary update since 1.13. However, a slight change would make them way more flexible and a lot more useful, I'm talking about default values for macros.
Currently, if a macro is defined in a function, you have to give it a value every time you want to call the function, which can cause a lot of redundancy, when 95% of the time the value is the same and you really only want to change it for the 5%.
The syntax could be a comment in the first line, where the default values are defined, for example
# $(macro1=323) $(macro2="this is a string") $(macro3={snbtworks:1b})
The default value would be used whenever the function is called without the macro key defined, otherwise it's overridden.
Please sign in to leave a comment.
2 Comments