24

Extension methods in C# are fucking genius.

Java would never.

Comments
  • 6
    except java did
    meet lombok

    or a godlike jvm lang: kotlin :)
    clojure also has extension methods, and is jvm
  • 10
    Kotlin 😍
  • 4
    @FetzenNET I Kotlin you too 😍
  • 2
    @Proximyst Vanilla Java doesn't have this
  • 1
    @Milenchy It's still Java, though :)
  • 1
    @Proximyst I disagree and it sounds like a cheap attempt at making Java look better.
  • 1
    @HelloUglyWorld it's Java, but like C#, but Java
  • 0
    @HelloUglyWorld @Milenchy it's not at all a cheap attempt to improve Java. It's made my development life a lot more enjoyable!

    Also, it compiles to JavaScript... Once ECMAScript 2015 is supported (JSX) it will be so easy to develop anything network related with Kotlin only!

    Type safe. Null safe. Expressive. Object oriented. Functional. Java where you want. JS where you need. Everything else where you can imagine.
  • 0
    Java doesn't, but Scala does. It runs on the JVM and can use all existing Java libraries. Plus it's functional!
  • 0
    @eeee Not my point.

    My point was that what Kotlin has isn't thanks to Java, so saying Java has something because Kotlin has it is reduntant and false.
  • 0
    @HelloUglyWorld Kotlin is the perfect JVM lang, it's that simple. The shit on top seems very cheap, but once you get deeper into it, you'll find there are numerous advantages
  • 1
    @Proximyst Still not my point.

    I'm not saying anything regarding Kotlin, I'm only saying that Kotlin is a language built on top of Java, so it's hardly Java's advantages.
  • 0
    @HelloUglyWorld In that case I also mentioned Lombok
  • 1
    @Proximyst Yes, but Lombok is a library.

    It's like saying that PHP is great, because Laravel makes it less cancerous.

    PHP by default is awful if it comes to creating websites.
Add Comment