Closed iccir closed 5 years ago
An example of converting ivars and properties to Typescript-style:
@class TheClass {
_aString: String;
_bString: String, _cString: String;
_checked: BOOL;
}
@property (readonly) theProperty: String;
@end
Right now, we have 3 different syntaxes for type annotations:
@class
ivars and@property
)@type
, and variables).Trying to use TypeScript-style for methods is going to be weird (since the
:
is part of the method signature. Could/should we use TypeScript-style for ivars and possibly@property
?This solves a frequent issue I hit: confusing syntax when converting between an
@type
and@class
.