Thread
#feed
    Nikky

    Nikky

    3 years ago
    did he really call kotli na cute baby that has to grow up ?
    altavir

    altavir

    3 years ago
    Well, Java is good and going in the right direction. The problem is you need to live really long to see the right things happen.
    p

    pivovarit

    3 years ago
    Keep in mind that Venkat is a big fan of Kotlin 🙂
    Tuan Kiet

    Tuan Kiet

    3 years ago
    why this is funny
    j

    janvladimirmostert

    3 years ago
    i wonder how they would implement null-safety without breaking the language
    probably annotations, @NotNullable or something else that's verbose
    p

    pivovarit

    3 years ago
    i wonder how they would implement null-safety without breaking the language
    The same way the Kotlin did 😉
    j

    janvladimirmostert

    3 years ago
    Java would have to do it the other way around, String would have to be nullable and @String or String? would have to be non-nullable
    Unless they introduce a breaking change which they probably won't do
    p

    pivovarit

    3 years ago
    Well, in Java you’d need to go the other way around since current type system assumes that everything is nullable
    But other than that, no biggie - just like with Kotlin
    Another issue is if it makes sense to introduce something like that to an established language and commit to maintaining it potentially forever
    j

    janvladimirmostert

    3 years ago
    they could probably just continue to treat String like String! and then introduce ? for nullable and some other symbol for non-nullable. Would be weird working on a mixed Kotlin-Java project where the meaning of String? is swopped between Java and Kotlin
    v0ldem0rt

    v0ldem0rt

    3 years ago
    No offense but I think this is pure marketing stunt pulled off by Oracle. Oracle knows that it has been lagging on Java and with new JDK release cycle/policy the F**KED UP! Google is now pushing behind Kotlin and I don't see a reason why Kotlin won't give a strong competition to Java proving "baby" that has evolved already.
    Pett4j

    Pett4j

    3 years ago
    If you want to avoid completely null, you can use Optional.
    Actually, Java will never be a mobile language again!
    j

    janvladimirmostert

    3 years ago
    yeah, especially not after that Oracle lawsuit against Google