News for hackers. Stuff that matters.
Re:Parse, Don't Validate (2019) by ssalbdivad on Tuesday March 07, 2023 @01:04PM (#35058737)
Have you seen ArkType (https://github.com/arktypeio/arktype)? Similar parse-based approach to validation with a significantly more concise definition syntax:

const info = type({ name: "string>0", email: "email" })

Re:Parse, Don't Validate (2019) by nicky0 on Tuesday March 14, 2023 @01:07PM (#35154724)
No, but I'm a heavy Zod user so ArkType it looks interesting. Thanks for the tip!

Are there any compelling reasons to switch apart from the difference in syntax?