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

Randy Abernethy commented on THRIFT-2486:
-----------------------------------------

Hey Henrique,

Yes, Jens suggested this. It will allow existing compiler generators to be "in 
compliance" and as contributions come in to support omission of default values, 
if the code required to test for the presence of a complex default (e.g. a 
recursive struct) is too onerous the generator can serialize the value with no 
harm done. In essence the reader should be ambivalent, accepting the value from 
the stream if there and using the default when it is absent. The amount of 
default optimization will be totally up to the compiler language generator 
struct implementation.

-Randy

> Markdown for: Provide option to not write default values 
> ---------------------------------------------------------
>
>                 Key: THRIFT-2486
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2486
>             Project: Thrift
>          Issue Type: Sub-task
>          Components: Documentation
>    Affects Versions: 0.9.2
>         Environment: All
>            Reporter: Randy Abernethy
>            Assignee: Randy Abernethy
>             Fix For: 0.9.2
>
>         Attachments: DefaultValues.md, DefaultValues2.md
>
>
> Docs to support default values.



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

Reply via email to