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

emit warning on (typically inefficient) list<byte>

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.2
    • Component/s: Compiler (General)
    • Labels:
    • Patch Info:
      Patch Available

      Description

      As long as there is no special treatment of list<byte> implemented, it is a common beginner's trap to choose list<byte> where really binary would be the better choice.

      Thus, the compiler should emit an adequate warning when list<byte> is found in the IDL.

        Attachments

        1. THRIFT-2404_warning_on_list_byte.patch
          2 kB
          Jens Geyer
        2. bytemania.thrift
          0.6 kB
          Jens Geyer

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: