https://kotlinlang.org logo
#announcements
Title
# announcements
j

jbnizet

06/14/2016, 9:57 AM
To me, a functional interface is a functional type. Now instead of clearly documenting and naming a Predicate (for example), we use a
(T) -> boolean
, which, IMO, is less readable (not always the case, I agree). And to fix this problem, Kotlin 1.1 will introduce type aliases, which wouldn't have been necessary for this usecase if functional interfaces were treated as functions in the first place, as they are in Java.