← Graph

Parsing is already validation

takeaway 1 connections

Q&A insight: separating parsing from validation is clean in theory, but coercion steps (e.g. turning a date string into a Date) are themselves validations. Nick Sutterer agrees and suggests the practical solution is tiny inline dry-validation rules or coercions inside the parsing pipeline that can already push errors onto the result object.

type
insight
takeaway Parsing is already validation
from_talk
Insight surfaced in Q&A on the parse/validate cycle.

Provenance