3 ms·
Please please please don't perpetuate the use of either or maybe types :( They make software very hard to maintain and end up breaking anyone who depends on a
by tantaman 6y ago
Please please please don't perpetuate the use of either or maybe types :(
They make software very hard to maintain and end up breaking anyone who depends on a library that uses them.
Rich Hickey (author of Clojure) has a great discussion of Either and Maybe here: https://www.youtube.com/watch?v=YR5WdGrpoug https://www.youtube.com/watch?v=YR5WdGrpoug that dives into their unsoundness.
- darksaints 6y agoThe author of a dynamically typed language thinks strongly typed constructs are bad? You don't say...
- mattnewton 6y agoRick’s argument seems to be that we should have better tools in the language type system. If your language doesn’t give you those tools, these are still very useful types. In addition, the library maintenance issues he raises seem trivially solvable with languages that allow function polymorphism or have refactoring tools to me.