2 ms·
Parsing includes validation. The point is you don’t check that your string only contains valid characters and then continue passing that string through your sy
by yakshaving_jgt 1y ago
Parsing includes validation.
The point is you don’t check that your string only contains valid characters and then continue passing that string through your system. You parse your string into a narrower type, and none of the rest of your system needs to be programmed defensively.
To describe this advice as “vacuous” says more about you than it does about the author.