‹ 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. reamaer · · focus · HN ↗
      It is also about clear demarcation, of validated stuff vs not yet validated.

      Crystal clear clarity is a nice thing to have. (As with everything, there are trade-offs)

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.