3 ms·
If 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 wou
by chongli 8y ago
If 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