Irelephant@lemm.ee to Programmer Humor@programming.devEnglish · 11 hours agolooks good to melemm.eeimagemessage-square15fedilinkarrow-up10arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up10arrow-down1imagelooks good to melemm.eeIrelephant@lemm.ee to Programmer Humor@programming.devEnglish · 11 hours agomessage-square15fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up0·8 hours agotry { operation(); } catch { // nice weather, eh? }
minus-squareKaryoplasma@discuss.tchncs.delinkfedilinkarrow-up0·edit-26 hours agoStarting 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
try { operation(); } catch { // nice weather, eh? }
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
Same thing right?