Named argument for js client.
This issue is not exactly an issue, but I thought it might be a good thing to raise the subject before the client gets very popular. Have you thought of using a dictionary as an argument for the creation of the Algolia object?
As a benefit,
-
you could give the JSON representation of this dictionary in all the place where you present the user credentials. It will be a valid literal, ready for copy-paste for JS, NodeJS but also python !
-
it will make it easier for you to grow the API options.
-
it will help people, as their configuration will probably, be in one way or another, serialized or defined beforehands in their code.
We have few parameters in the init, I am not sure about the advantages of a dictionary for such a small set. I see advantages when the set is >= 5. If we see an advantage later, we can still decide to add another init function with a dictionary :)
I like named arguments too, reduce FUD on the API.
see #40