News for hackers. Stuff that matters.
Re:Parse, Don't Validate (2019) by barmic12 on Tuesday February 10, 2026 @12:17PM (#46963236)
one issue is it’s not a type alias but a type encapsulation. This have a cost at runtime, it’s not like in some functionnals languages a non cost abstraction.
Re:Parse, Don't Validate (2019) by vips7L on Tuesday February 10, 2026 @01:24PM (#46964422)
Correctness is more important than runtime costs.
Re:Parse, Don't Validate (2019) by LelouBil on Wednesday February 11, 2026 @12:29PM (#46977932)
In languages like kotlin and rust you can have a type encapsulation like this that does not exist at runtime