from Hacker News

New features comming in Java 25

by ludovicianul on 3/25/25, 6:33 PM with 1 comments

  • by java-man on 3/25/25, 6:42 PM

    Stable values are good, though I would rather see a 'lazy' keyword.

    Something like this:

        private static final lazy Log log = Log.get();
    
    which instantiates the `log` field atomically on the first use.