qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-23 个月前Slapping on a .expect is also error handling!lemmy.worldimagemessage-square19fedilinkarrow-up1145arrow-down15file-text
arrow-up1140arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-23 个月前message-square19fedilinkfile-text
minus-squareqaz@lemmy.worldOPlinkfedilinkEnglisharrow-up5arrow-down1·edit-23 个月前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.
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.