For one example, i tried to understand function as first class citizen etc, which generally still can be digested. But i do not get it when FP try to advocate people to avoid null, be null safe etc. But yet kotlin has ? To define a nullable variable. This seems to give me a conflicting measage.
k
karelpeeters
07/06/2017, 5:59 PM
Non-nullability and functional programming are two separate things.
Kotlin has ? for compatebility reasons and to not limit what people can do with it, null can be useful sometimes.