The Elegance of Pattern Matching in Modern Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 22

  • @dcascato
    @dcascato 2 ปีที่แล้ว +9

    So exciting to see the Java evolution! And as Venkat mentions in the end, imagine having things like destructuring in Java, dear lord, just can't wait to see it.

  • @pmorah
    @pmorah 2 ปีที่แล้ว +3

    Awesome presentation. What a pleasure watching venkat talks.

  • @spheenik
    @spheenik 2 ปีที่แล้ว

    I was waiting for several minutes for you to spot the superfluous "r" in "interger", and was very happy when you finally removed it.
    Just for you to undo 20 seconds later and put it back in again :D

  • @kpradeep12
    @kpradeep12 2 ปีที่แล้ว +4

    Thank you, Venkat, it's an amazing presentation, enjoyed and learned new pattern matching in Java

  • @zaccicala2341
    @zaccicala2341 2 ปีที่แล้ว

    Venkat is a great presenter. He's got a real infectious enthusiasm.

  • @SourabhBhat
    @SourabhBhat 2 ปีที่แล้ว +6

    Awesome presentation!!

    • @java
      @java  2 ปีที่แล้ว

      Glad you liked it!

    • @dGhost101
      @dGhost101 2 ปีที่แล้ว

      @@javawithout writing (javac and java in terminal) how this java compile and run in vim ??

  • @shizhenglee4484
    @shizhenglee4484 2 ปีที่แล้ว

    Can't wait to learn Java18 with Venkat!

  • @CenturionDobrius
    @CenturionDobrius 2 ปีที่แล้ว

    Ingenious mr. Venkat, the Great 😀

  • @danieldudziak400
    @danieldudziak400 2 ปีที่แล้ว

    How pattern matching is going to handle dynamic code and scenarios that can occurs with OSGi?

  • @DevMultitask
    @DevMultitask 2 ปีที่แล้ว

    Nice examples Venkat ! Thank you!

  • @sovrinfo
    @sovrinfo 2 ปีที่แล้ว

    Thanks you a lot

  • @luigibuoncristiani2681
    @luigibuoncristiani2681 2 ปีที่แล้ว

    It is very interesting and push to have more elegance in coding. Perhaps it missing something on generic types.

  • @badpotato
    @badpotato 2 ปีที่แล้ว +1

    can you ask Venkat to use some IDE which uses syntax highlighting.. this will make code reading a lot better.. Presentation is really good.

  • @roronoa_d_law1075
    @roronoa_d_law1075 หลายเดือนก่อน

    Why is this called pattern matching ? I thought pattern matching was related to regex

  • @PandaMoniumHUN
    @PandaMoniumHUN 2 ปีที่แล้ว +1

    Nice presentation. However, you should be aware most of the examples presented here violate Liskov substition principle. I hope I'll never see switch cases differentiating between interface implementations.

    • @edmaphis9805
      @edmaphis9805 2 ปีที่แล้ว +2

      If project Amber is successful, you'll see switch expressions differentiating on sealed (closed) interfaces everywhere. That's how Java will implement union types.

  • @MrMikomi
    @MrMikomi ปีที่แล้ว

    I do not understand why Venkat encourages us not to use default when an unexpected value is received. I always throw an IllegalArgumentException. That behaviour is future proof.

  • @avalagum7957
    @avalagum7957 2 ปีที่แล้ว +3

    Dr Subramaniam might not do Scala any more, but I guess he will admit that Scala's pattern matching is the best and although Java's pattern matching is nice, it's like a joke compared to the Scala one.

    • @edmaphis9805
      @edmaphis9805 2 ปีที่แล้ว +1

      Java pattern matching isn't complete. They will add features to it incrementally over time. Decomposition of classes and records is coming next.

    • @avalagum7957
      @avalagum7957 2 ปีที่แล้ว

      @@edmaphis9805 that's right. I hope it won't take Java 3 years to have features that Scala had 3 years ago. I also hope the project Loom will be finished soon so that all jvm languages can benefit from.