News for hackers. Stuff that matters.
Re:Types as Interfaces by joshlemer on Tuesday July 23, 2024 @01:55PM (#41048898)
But then ironically, the problem with relying on programming language type systems is that they don't scale (beyond the boundaries of a single process). As soon as you are crossing a wire you have to go back to runtime validations.
Re:Types as Interfaces by nightski on Tuesday July 23, 2024 @10:43PM (#41053164)
Throwing out type safety simply because you have unverified input is a little silly. It's trivial in most statically typed languages to safely turn input into a concrete type (or an error if it is invalid) at the edge and meanwhile maintain type safety throughout the rest of the code.