You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Zachary Davison (JIRA)" <ji...@apache.org> on 2013/07/02 18:55:21 UTC
[jira] [Updated] (THRIFT-2079) Expose collection element type
information through @property comments.
[ https://issues.apache.org/jira/browse/THRIFT-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zachary Davison updated THRIFT-2079:
------------------------------------
Attachment: thrift-cocoa-collection-type-comments.patch
> 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
> Labels: newbie
> 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