|
|
|
|
|
by 0DHm2CxO7Lb3
2151 days ago
|
|
> I don't understand why having a formal model for that commonality is so important. So generic libraries can be built and abstracting frequently used operations over many different data types. I've never implemented a monad myself outside of a toy project and am by no means an expert, but it's quite nice to be able to transfer certain knowledge on lists to options or futures. Similar to generic interfaces like a collection interface, so whether you are working on a set or a list you know that 'get' or 'exists' can be used. |
|