3 ms·
Note also that HKT and do notation are their own separate things; you can have HKT without do notation. That's all HKT stuff, not do notation stuff.
by steveklabnik 8y ago
Note also that HKT and do notation are their own separate things; you can have HKT without do notation. That's all HKT stuff, not do notation stuff.
- chongli 8y agoIf you have HKT then isn't do notation a piece of cake? It just desugars into monadic bind and return operators. Or is there something specific to rust that would mess with that?
- pcwalton 8y agoImperative control flow, for one. Think about how you would implement "break" that can break out of multiple nested loops in do-notation…
- steveklabnik 8y agoPlease see my comment here: https://news.ycombinator.com/item?id=17537878 https://news.ycombinator.com/item?id=17537878