Zwykle widziałem kod, który zadeklarować stałe właśnie tak:Czy istnieje jakaś różnica między "statyczną konstelacją NSInteger" i "statyczną const NSInteger"?
static const NSInteger kNum = 1;
static NSString * const kStr = @"A";
wiem dlaczego const
powinno być napisane za NSString *
, ale nie jestem pewien, czy static NSInteger const kNum = 1;
i static const NSInteger kNum = 1;
są takie same.
Czy jest jakaś różnica między static NSInteger const
a static const NSInteger
?