You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Randy Abernethy (JIRA)" <ji...@apache.org> on 2014/05/06 16:16:17 UTC

[jira] [Commented] (THRIFT-2429) Provide option to not write default values, rely on receiver default construction instead

    [ https://issues.apache.org/jira/browse/THRIFT-2429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990669#comment-13990669 ] 

Randy Abernethy commented on THRIFT-2429:
-----------------------------------------

Sounds like there is a slight preference for option 2:  Use optional fields with = default values as reader side default

I'll update the markdown. Patches welcome for the language sub-tasks.

> Provide option to not write default values, rely on receiver default construction instead
> -----------------------------------------------------------------------------------------
>
>                 Key: THRIFT-2429
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2429
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C++ - Compiler
>    Affects Versions: 0.9.1
>            Reporter: Chris Stylianou
>            Assignee: Randy Abernethy
>              Labels: default, optional, required
>
> Would there be any objections to a patch that does not write default values (essentially the same logic as the optional attributes). This obviously relies on the receiving application using the same IDL version to ensure the defaults used on object construction match the senders.



--
This message was sent by Atlassian JIRA
(v6.2#6252)