gf000 2 days ago

Except for the extra 3 lines of if err for every statement..

  • aatd86 2 days ago

    Perhaps that it is coming sooner than you think... It all started with adding Value types, now syntactic refinements à la Go... Who knows? :-) You'll be very happy.

    edit: hold on wait, java doesn't have Value types yet... /jk

    • Capricorn2481 a day ago

      > syntactic refinements à la Go

      An oxymoron if I've ever heard one.

      • aatd86 a day ago

        ???!

        refinement: the process of removing impurities or unwanted elements from a substance.

        refinement: the improvement or clarification of something by the making of small changes.

        public static void in a class with factory of AbstractFactoryBuilderInstances...? right..? Yes, say that again?

        We are talking about removing unnecessary syntactic constructs, not adding as some would do with annotations in order to have what? Refinement types perhaps? :)

        • Capricorn2481 a day ago

          > public static void in a class with factory of AbstractFactoryBuilderInstances

          That's not syntax. Factory builders have nothing to do with syntax and everything to do with code style.

          The oxymoron is implying syntax refinements would be inspired by Go of all things, a language with famously basic syntax. I'm not saying it's bad to have basic syntax. But obviously modern Java has a much more refined syntax and it's not because it looks closer to Go.