4 ms·
Great article and given the context of the code this is a brilliant solution, but note that this assumes that the data is well-formed. Much of the value in an e
by teucris 3y ago
Great article and given the context of the code this is a brilliant solution, but note that this assumes that the data is well-formed. Much of the value in an effective, battled-worn parser is efficient error checking and recovery.
- Karellen 3y agoIt would be interesting to see a breakdown of the ways in which ill-formed inputs could affect the output. And how much work it would be to detect such inputs and return some kind of sentinel error value - in the same style as the current code. (Not quite interesting enough for me to do it myself though ;-)