You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Carl Yeksigian (JIRA)" <ji...@apache.org> on 2013/06/07 18:34:21 UTC

[jira] [Closed] (THRIFT-2003) Deprecate senum

     [ https://issues.apache.org/jira/browse/THRIFT-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Yeksigian closed THRIFT-2003.
----------------------------------

    Resolution: Fixed
    
> 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
>              Labels: senum
>             Fix For: 1.0
>
>         Attachments: 0003-Added-senum-derprecation-warning-to-lexar.patch
>
>
> 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