Jens Geyer created THRIFT-5216:
----------------------------------
Summary: 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
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)