‹ BackHN Continuity

Thread

Rusty thoughts on "Parse, don't validate"

95 points · 47 comments · ingve

  1. Supermancho · · focus · HN ↗
    "parse don't validate" can be rephrased: "expect the type validation from a parser"

    Which is plainly moving the problem around, for types. The value validation is a much simpler problem, as a separate application-specific check.

    1. cpburns2009 · · focus · HN ↗
      Thank you! I always found the quip "parse, don't validate" to be more confusing than helpful. Parsing doesn't remove the need for validation. All it does is ensures the type is right, but does nothing to validate the values for the domain.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.