Closed saep closed 9 years ago
The functions in remote#define require some additional parameters. Most notably sync
. We should either create async and sync variants for the generator functions or supply them with an additional parameter. I am in favour of the former because it seems to be more user friendly and having four functions for creating an exported function is still manageable, especially if the documentation is structured properly.
I'll merge this if these changes work with the Template Haskell stuff which I'll test this evening. I do not see any real issues with these changes yet.
I started to write some Template Haskell, so that one is able to write (simple) stateless functions in a normal Haskell manner. This addresses the points made in #12 which should be discussed further.
The drawbacks I have found are the following:
Object
directly. This means that you may have to put a type annotation on the function.function
splice.nil
value as an argument and useMaybe
around the arguments type. A the same time, heterogeneous lists are not supported as arguments (and maybe they shouldn't be anyway).