• Karyoplasma@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    2 hours ago

    Starting with Java 21 (I think), they’ve introduced ignored variables, so you can now actually do this:

    try {
        operation();
    } catch (Exception _) {
        // nice weather, eh?
    }
    

    Edit: forgot that this is about JS lel