Irelephant@lemm.ee to Programmer Humor@programming.devEnglish · 12 hours agolooks good to melemm.eeimagemessage-square21fedilinkarrow-up1404cross-posted to: programmerhumor@lemmy.ml
arrow-up1404imagelooks good to melemm.eeIrelephant@lemm.ee to Programmer Humor@programming.devEnglish · 12 hours agomessage-square21fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up43·9 hours agotry { operation(); } catch { // nice weather, eh? }
minus-squareKaryoplasma@discuss.tchncs.delinkfedilinkarrow-up5·edit-27 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·3 hours agoSo basically the same as a discard in C#?
try { operation(); } catch { // nice weather, eh? }
☑️ PR Approved
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?
Thanks. I hate it.