Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2079

Expose collection element type information through @property comments.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 0.9
    • 0.13.0
    • Cocoa - Compiler
    • Patch Available

    Description

      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*>

      Attachments

        Activity

          People

            jking3 James E. King III
            zdavison Zachary Davison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: