points by BoppreH 2 days ago | 0 comments
If you mean type aliases, that's a good idea within a single codebase, but the distinction between different types of strings doesn't survive serialization so it wouldn't have prevented this error. What they need is a way to signal errors out-of-band, like Result<T> or exceptions.
So yeah, I guess it either needs to happen at runtime, or we just do signaling and user data on separate file descriptors.