Irelephant@lemm.ee to Programmer Humor@programming.devEnglish · 8 hours agolooks good to melemm.eeimagemessage-square16fedilinkarrow-up1336cross-posted to: [email protected]
arrow-up1336imagelooks good to melemm.eeIrelephant@lemm.ee to Programmer Humor@programming.devEnglish · 8 hours agomessage-square16fedilinkcross-posted to: [email protected]
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up32·6 hours agotry { operation(); } catch { // nice weather, eh? }
minus-squareKaryoplasma@discuss.tchncs.delinkfedilinkarrow-up4·edit-24 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
minus-squareTraister101@lemmy.todaylinkfedilinkarrow-up1·1 hour agoIf your joking yes, if your not Java and Java Script are seperate things.
try { operation(); } catch { // nice weather, eh? }
Thanks. I hate it.
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?
If your joking yes, if your not Java and Java Script are seperate things.