jeff 👨💻@programming.dev to Programmer Humor@programming.devEnglish · 2 years ago0 vs null vs undefined - explained with toilet paperi.stack.imgur.comimagemessage-square20fedilinkarrow-up1345arrow-down19
arrow-up1336arrow-down1image0 vs null vs undefined - explained with toilet paperi.stack.imgur.comjeff 👨💻@programming.dev to Programmer Humor@programming.devEnglish · 2 years agomessage-square20fedilink
minus-squaredeegeese@sopuli.xyzlinkfedilinkEnglisharrow-up0·2 years agoLack of support for nulls sounds like a huge pain in the ass.
minus-squaretraches@sh.itjust.workslinkfedilinkEnglisharrow-up1·2 years agoIt also doesn’t have throw/try/catch. If a function can fail, it returns a Result and you have to deal with the failure case explicitly.
minus-squarelabsin@sh.itjust.workslinkfedilinkEnglisharrow-up0·edit-22 years agoIt has std:option So every object that can be None or Some, needs to be checked when used. And only options can be set to None
Lack of support for nulls sounds like a huge pain in the ass.
It also doesn’t have throw/try/catch. If a function can fail, it returns a Result and you have to deal with the failure case explicitly.
It has std:option
So every object that can be None or Some, needs to be checked when used. And only options can be set to None
*Laughs in Option<T>*