8
Cronaut
6y

rant, but !really.

Trying out this new Kotlin language. Pretty cool, except for...

val str: String = "what the fuck is this syntax?"

Comments
  • 1
    Is there not implicit typing?
  • 1
    @spongessuck There is! Though, the observation was about the explicit​ typing syntax: I find it to be quite funky.

    P.S. Also, I can't say I like the idea of allowing for both kinds of typing, but that's a topic for a different rant, ha-ha.
  • 1
    Many modern languages you can do either way; you usually need explicit typing if you don't set a value right away.
  • 1
    @spongessuck Yeah, I agree with that. I guess, what I meant was: I haven't seen a popular language that wouldn't substitute "var" or "let" (or anything similar) for the explicit type, though!

    In case you're not talking about my P.S. statement.
  • 1
    Yea, Question it and it turns Null 😂
  • 1
    It' Typescript-like
Add Comment