Closed cool8jay closed 7 years ago
Hi,
In EKGraph.m, I see code like this
EKGraph.m
NSMutableArray *parent = [@[] mutableCopy]; NSMutableDictionary *dist = [@{} mutableCopy];
why not
NSMutableArray *parent = [NSMutableArray array]; NSMutableDictionary *dist = [NSMutableDictionary dictionary];
Is this kind of code relative to special function or just a way of style?
I find an explanation here.
http://stackoverflow.com/questions/13607007/what-is-and-in-objective-c
Hi,
In
EKGraph.m
, I see code like thiswhy not
Is this kind of code relative to special function or just a way of style?