9
Liz3
7y

Java was made to be easy, but leaks features even c++ has.

Type inference

Java: was is that.

C++: auto, easy

Comments
  • 4
    Java was a state of the art language in 1997. Now, it's a 1997 language in 2017...

    ..... Actually, scratch that, Java was never a state of the art language, it's design-by-committee bullshit from the start.
  • 8
    why exactly would you want to use type inference in a statically typed language?

    also i suppose you havent been a java dev for long if you havent heard of generics
  • 0
    @BindView
    Reply newReply = new ReplyFactory<SarcasticResponse>(ReplySource("because verbosity?")).generateReply();
  • 12
    @jaread boo hoo java is verbose and my ide surely doesnt autocomplete the code after 3 fucking keystrokes
  • 1
    @BindView ive been programming java for 4 years, its the opposite, im new to c++ actually
  • 0
    what the hell, how come you never used generics
  • 1
    @BindView @jaread 😛
  • 1
    @BindView i do....
  • 0
    but..THAT is type inference???
  • 1
    @BindView im ranting about type inference here, kotlin is a static language but use types only when required
  • 0
    @BindView Java doesn't have generics, it's just boxing with syntactic sugar which you can break at runtime.
  • 1
    @BindView No its casting dude
  • 4
    @jaread at this point im p sure you are trolling
  • 1
    @Liz3 @BindView thats not the kind i mean... java also some inference in lambdas
  • 5
    Features even C++ has? I actually thought C++ was the language with the most features
  • 0
    @Liz3 Kotlin is just a language that get compile down to java. Also I'm pretty sure you give it the type at the construction.
    var v = myVar()
    or
    var v: myVar? = null

    And because it's decalred, the smart IDE can give you good recommendations.
  • 2
    @Awlex kotlin does NOT compile to Java, its compiling to jvm bytecode not java
  • 1
    I'm sorry that I forgot to add the word bytecode😋
Add Comment