Randy Abernethy created THRIFT-2003:
---------------------------------------

             Summary: Deprecate senum
                 Key: THRIFT-2003
                 URL: https://issues.apache.org/jira/browse/THRIFT-2003
             Project: Thrift
          Issue Type: Improvement
          Components: Compiler (General)
    Affects Versions: 1.0
         Environment: All
            Reporter: Randy Abernethy
            Priority: Minor
             Fix For: 1.0


I propose the senum type be deprecated (flagged by the compiler as scheduled 
for removal) in v1.0 and subsequently removed in a later version of Apache 
Thrift.

Rationale: The senum type is a string in all target languages. Instances of the 
type are not constrained to the enumeration strings in IDL or output languages. 
IDL constants of type senum can be assigned irrational values (e.g. random 
strings, integers, floats, etc.) without a compiler warning or error. The senum 
type offers no cross language utility and is easily replaced by string or enum 
(which offers string lookup in many languages). This type impacts a wide range 
of concerns including language generators and the effort required to learn 
Apache Thrift. 


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

Reply via email to