As I’m playing with JUCE8 WebView I’m wondering how my code would end up if I need many or the same.
Maybe it can be encoded into more concise listeners/functions instead of having multiple. but how about being able to provide an initializer list so:
Before:
opts.withNativeFunction(func1).
opts.withNativeFunction(func2).
opts.withNativeFunction(func3).
...
withNativeFunction(funcN).
After:
opts.withNativeFunctions({func1,func2,...,funcN});