> > 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> > ... >
Yeah I know... > 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? > IMHO yes, because you can then document the arguments better. Otherwise you would need to document the parameters of a parameter function, which is pretty annoying, e.g. /** * @param fund Will be called when ... and <quite some text here to document the meaning of 5 parameters of the current parameter func> */ void test(Func5<A, B, C, D, E> func); vs. /** * @param func will be called when ... */ void test(TestFunction func) interface TestFunction { /** * @param name .... * @param street .... * ... */ call(String name, String street, String ..., Integer ..., int ....) } -- 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.
