Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Kotlin lambda support? #77
Now spring cloud function supports Function, Consumer, and Supplier in java.util.function package. Any idea to support Kotlin lambda?
Function == (T) -> R
Kotlin Code with java function
Kotlin Code with Lambda
Even from a Java perspective, I tend to think supporting any kind of functional interface with the required signature would make sense.
On a related note, as part for Spring Framework 5 we have also put a focus on supporting immutable data classes which are a key building block in functional programming. See SPR-15199 and SPR-15673 for more details. It would be nice to make sure that Spring Cloud function leverage these capabilities.