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

Jens Geyer resolved THRIFT-5216.
--------------------------------
    Fix Version/s: 0.14.0
       Resolution: Fixed

> generate DeepCopy methods
> -------------------------
>
>                 Key: THRIFT-5216
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5216
>             Project: Thrift
>          Issue Type: Improvement
>          Components: netstd - Compiler
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Major
>             Fix For: 0.14.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Frequently one runs into a need to create deep copies from Thrift data 
> objects. Since the framework does not really offer support for such a 
> function, it seems helpful to have the Thrift Comnpiler generate the code 
> necessary to support this.
> Remarks:
>  * Microsoft explicitly discourages developeres to use ICloneable for this as 
> there is no reliable definition whether ICloneable creates shallow or deep 
> copies, so we don't use it either.
>  * Although there is no officially set standard, most common naming 
> convention seems to be {{DeepCopy()}} for such a method, so we follow that 
> model but leave room for future changes (i.e. different naming)
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to