News for hackers. Stuff that matters.
Re:A Year’s Worth of Opinions about Objective-C by aaronbrethorst on Saturday December 14, 2013 @01:43PM (#6906567)
I find it far more convenient to type something like

    NSArray *a = [self somethingThatProducesAnArray];

    if (a.count > 0) {
      // do something
    }
    else {
      // do something else
    }
than

    NSArray *a = [self somethingThatProducesAnArray];

    if (a && a.count > 0) {
      // do something
    }
    else {
      // do something else
    }

There are no comments on this comment yet.