qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 month agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square28linkfedilinkarrow-up1141arrow-down15file-text
arrow-up1136arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 month agomessage-square28linkfedilinkfile-text
minus-squareqaz@lemmy.worldOPlinkfedilinkEnglisharrow-up7·edit-21 month agoA good example would be regex. After validating it when writing the program it should always compile, although this could also be solved with a proc macro that validates the regex at compile time.
A good example would be regex. After validating it when writing the program it should always compile, although this could also be solved with a proc macro that validates the regex at compile time.