-
Notifications
You must be signed in to change notification settings - Fork 933
Closed
Labels
Description
This is so close to being parsable Rust code:
return doughnutFryer
.start()
.then((_) => _frostingGlazer.start())
.then((_) => Future.wait([
_conveyorBelts.start(),
sprinkleSprinkler.start(),
sauceDripper.start()
]))
.catchError(cannotGetConveyorBeltRunning)
.then((_) => tellEveryoneDonutsAreJustAboutDone())
.then((_) => Future.wait([
croissantFactory.start(),
_giantBakingOvens.start(),
butterbutterer.start()
])
.catchError(_handleBakingFailures)
.timeout(scriptLoadingTimeout, onTimeout: _handleBakingFailures)
.catchError(cannotGetConveyorBeltRunning))
.catchError(cannotGetConveyorBeltRunning)
.then((_) {
_logger.info("Let's eat!");
});
Can we do this well?
from http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/