Function parameter order
Kevin Bourrillion
kevinb at google.com
Tue Nov 6 08:58:56 PST 2012
It sounds as though we're planning on Function<ReturnType, InputType>.
I'd just like to note that this is going to put codebases that are in any
stage of migration to JDK types from existing libraries including Guava in
a really, really bad position.
Every time I see Function<A, B> for *years*, I am going to have to check
the imports to find out whether that's A->B or B-A.
I'm not saying this consideration should trump all others. Just noting that
I see this as a very bad problem for my user base.
--
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com
More information about the lambda-libs-spec-observers
mailing list