Jen, If adding a couple of more interfaces is code smell, take a look at this <https://github.com/jOOQ/jOOL/tree/master/src/main/java/org/jooq/lambda/function> ... Also, take a look at JS APIs like this <https://github.com/bevacqua/dragula#usage> - are we all supposed to define the same 4/5-argument functions for every js library that requires them?
On Thursday, June 2, 2016 at 3:10:44 PM UTC-7, Jens wrote: > > > I will add 4 and 5 arg interfaces. >> > > I can already smell the code smell.. > > void myAsyncFunction(Func5<String, Boolean, Random, MyClass, Something> > onSuccess, Func5<Something, MyClass, Random, Boolean, String> onFailure); > > IMHO its fine to just have Func1 and for anything else chose a concrete > name for a concrete functional interface so you have a place to document > all these parameters. The above should be myAsyncFunction(OnSuccessCallback > ..., OnFailureCallback ...) with some nice JavaDoc in OnSuccessCallback, > OnFailureCallback. > > So think twice if its really a good idea to add any kind of possibly > "useful" interfaces. > > -- J. > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
