Zachary Davison created THRIFT-2079:
---------------------------------------
Summary: Expose collection element type information through
@property comments.
Key: THRIFT-2079
URL: https://issues.apache.org/jira/browse/THRIFT-2079
Project: Thrift
Issue Type: Improvement
Components: Cocoa - Compiler
Affects Versions: 0.9
Reporter: Zachary Davison
Priority: Minor
Attachments: thrift-cocoa-collection-type-comments.patch
Currently there is no easy way to know type information of collections in
generated Cocoa thrift classes (due to obj-c collections not being templated).
This becomes awkward from a documentation point of view as the code is not self
documenting and assumptions have to be made by the reader based on the type of
elements inside a collection.
Suggest appending comments after @property declarations to indicate element
type, eg:
@property (nonatomic, retain, getter=newlist, setter=setNewlist:)
NSMutableArray * newlist; // <NSNumber*>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira