Irelephant@lemm.ee to Programmer Humor@programming.devEnglish · 10 hours agolooks good to melemm.eeimagemessage-square18fedilinkarrow-up1339arrow-down14cross-posted to: programmerhumor
arrow-up1335arrow-down1imagelooks good to melemm.eeIrelephant@lemm.ee to Programmer Humor@programming.devEnglish · 10 hours agomessage-square18fedilinkcross-posted to: programmerhumor
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up35arrow-down1·7 hours agotry { operation(); } catch { // nice weather, eh? }
minus-squareKaryoplasma@discuss.tchncs.delinkfedilinkarrow-up4·edit-25 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-squarejubilationtcornpone@sh.itjust.workslinkfedilinkEnglisharrow-up1·1 hour agoSo basically the same as a discard in C#?
minus-squareTraister101@lemmy.todaylinkfedilinkarrow-up1·3 hours agoIf your joking yes, if your not Java and Java Script are seperate things.
if (error) { continue; }
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
So basically the same as a discard in C#?
Same thing right?
If your joking yes, if your not Java and Java Script are seperate things.
Thanks. I hate it.