▲ | yakshaving_jgt 3 days 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. |