Irelephant@lemm.ee to Programmer Humor@programming.devEnglish · 12 hours agolooks good to melemm.eeimagemessage-square21fedilinkarrow-up1415cross-posted to: programmerhumor@lemmy.ml
arrow-up1415imagelooks good to melemm.eeIrelephant@lemm.ee to Programmer Humor@programming.devEnglish · 12 hours agomessage-square21fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareKaryoplasma@discuss.tchncs.delinkfedilinkarrow-up6·edit-28 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#?
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?