4 ms·
I haven't written go in a while, but I recall being rather dissatisfied with the so-called 'if-hell'. I've been wondering lately - is there any reason why you
by lorddoig 11y ago
I haven't written go in a while, but I recall being rather dissatisfied with the so-called 'if-hell'. I've been wondering lately - is there any reason why you couldn't/shouldn't use monads for this? Nothing obvious popping out of Google.
"gonads" would be my choice of name for this library.
- rlp 11y agoLove the name! But there's no way Go's feeble type system supports anything remotely like a Monad.
- stcredzero 11y agoHere's what GIlad Bracha might say about that: http://www.infoq.com/presentations/functional-pros-cons?utm_source=infoq&utm_medium=QCon_EarlyAccessVideos&utm_campaign=QConSanFrancisco2013 http://www.infoq.com/presentations/functional-pros-cons?utm_...