cs193p – Assignment #1 Task #5


Add a Bool property to your CalculatorBrain called resultIsPending which returns whether there is a binary operation pending.

Create a generated property which checks if there is a pending binary operation:

    var resultIsPending: Bool {
        get {
            return nil != pendingBinaryOperation

The complete code for the assignment #1 task #5 is available on GitHub.


Leave a Reply

Your email address will not be published.