irelephant 🍭@lemm.ee to Programmer Humor@lemmy.mlEnglish · 13 days agolooks good to melemm.eeexternal-linkmessage-square8fedilinkarrow-up10arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up10arrow-down1external-linklooks good to melemm.eeirelephant 🍭@lemm.ee to Programmer Humor@lemmy.mlEnglish · 13 days agomessage-square8fedilinkcross-posted to: programmer_humor@programming.dev
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up0·13 days agoStill not as excellent as On Error Resume Next Imagine the sheer idiocy genius required to add a language feature where, if an error occurred, the handling method is to just pretend that line of code never existed and continue onto the next line. VBA is truly the language of savants.
minus-squarewizardbeard@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up0·13 days agoPowerShell does that by default, and it’s my least favorite feature in my most used language. $ErrorActionPreference = Stop At the start of almost every script.
minus-squareintensely_human@lemm.eelinkfedilinkarrow-up0·13 days agoSo catching errors and doing nothing? That exists in every language except maybe BASIC?
minus-squareℍ𝕂-𝟞𝟝@sopuli.xyzlinkfedilinkEnglisharrow-up0·12 days agoCatching individual errors is fine. Having all errors be ignored by default is weird.
Still not as excellent as
On Error Resume Next
Imagine the sheer
idiocygenius required to add a language feature where, if an error occurred, the handling method is to just pretend that line of code never existed and continue onto the next line.VBA is truly the language of savants.
PowerShell does that by default, and it’s my least favorite feature in my most used language.
$ErrorActionPreference = Stop
At the start of almost every script.
So catching errors and doing nothing? That exists in every language except maybe BASIC?
Catching individual errors is fine. Having all errors be ignored by default is weird.