Hacker News new | past | comments | ask | show | jobs | submit login

> It is clearly the right way

It's clearly not. Either<T, Err> creates a dependence between T and Err that should not exist. They are logically independent variables. The state of Err has no reason to imply anything about the state of T.

I'd be inclined to agree that, for all practical purposes, it is the best we've got, but that doesn't mean it is right. An ideal language can do better.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: