esa@discuss.tchncs.de to Programming@programming.devEnglish · 22 days agoParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comexternal-linkmessage-square7fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comesa@discuss.tchncs.de to Programming@programming.devEnglish · 22 days agomessage-square7fedilink
minus-squareesa@discuss.tchncs.deOPlinkfedilinkarrow-up1·22 days agoParsing is a way of “validating early”. You either get a successful parse and the program continues working on known-good data with that knowledge encoded in the type system, or you handle incorrect data as soon as it’s encountered.
Parsing is a way of “validating early”. You either get a successful parse and the program continues working on known-good data with that knowledge encoded in the type system, or you handle incorrect data as soon as it’s encountered.