Zadyra@kbin.social to Programmer Humor@lemmy.ml · 1 year agoBrilliant exception handling I found in an app i had to work onmedia.kbin.socialimagemessage-square21fedilinkarrow-up152arrow-down11file-text
arrow-up151arrow-down1imageBrilliant exception handling I found in an app i had to work onmedia.kbin.socialZadyra@kbin.social to Programmer Humor@lemmy.ml · 1 year agomessage-square21fedilinkfile-text
minus-squaresellingspams@feddit.delinkfedilinkarrow-up1arrow-down1·1 year agoThis can’t compile, can it? Only a madman commits code which doesn’t compile.
minus-squareJaloopa@beehaw.orglinkfedilinkarrow-up0·1 year agoWhy wouldn’t it? It’s syntactically valid C#, with the added bonus of destroying the stack trace
minus-squareKeelhaul@sh.itjust.workslinkfedilinkarrow-up1·1 year agoWho needs stack traces anyway? Just search all of your code on the word throw until you have the right one
This can’t compile, can it? Only a madman commits code which doesn’t compile.
Why wouldn’t it? It’s syntactically valid C#, with the added bonus of destroying the stack trace
Who needs stack traces anyway? Just search all of your code on the word throw until you have the right one