All Teika functions have a single parameter and right now Teika doesn't have pairs, so the generated code is quite hard to read, additionally it allocates too many closures.
This changes addresses that by grouping nested functions and using a magic $curry helper in JS, this hopefully improves performance but it also makes the generated code much more readable.
Goals
More legible output and hopefully faster.
Context
All Teika functions have a single parameter and right now Teika doesn't have pairs, so the generated code is quite hard to read, additionally it allocates too many closures.
This changes addresses that by grouping nested functions and using a magic $curry helper in JS, this hopefully improves performance but it also makes the generated code much more readable.