7 ms·
I love this feature, but it's not quite the Maybe Monad, which lets you assemble a sequence of (possibly failing) statements together, and fail the whole sequen
by nardi 12y ago
I love this feature, but it's not quite the Maybe Monad, which lets you assemble a sequence of (possibly failing) statements together, and fail the whole sequence if any of the parts fails (without if-statements or switching of any kind).
- anon1385 12y ago'Optional Chaining' sounds like it lets you join thing together to some extent: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/OptionalChaining.html https://developer.apple.com/library/prerelease/ios/documenta...
- nardi 12y agoOh, cool! Straight out of CoffeeScript. Yeah, that's pretty much the monad instance of Maybe.