Irelephant@lemm.ee to Programmer Humor@programming.devEnglish · 10 hours agolooks good to melemm.eeimagemessage-square18fedilinkarrow-up1362arrow-down15cross-posted to: programmerhumor@lemmy.ml
arrow-up1357arrow-down1imagelooks good to melemm.eeIrelephant@lemm.ee to Programmer Humor@programming.devEnglish · 10 hours agomessage-square18fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareKaryoplasmalinkfedilinkarrow-up4·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
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.
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.