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

David Reiss commented on THRIFT-138:
------------------------------------

I don't know.  I don't really like the idea of having a clone method that 
returns a one-level-deep copy of the structure.  Can we put it to a vote?

> Generated Thrift structs should have a deep-copy constructor
> ------------------------------------------------------------
>
>                 Key: THRIFT-138
>                 URL: https://issues.apache.org/jira/browse/THRIFT-138
>             Project: Thrift
>          Issue Type: New Feature
>          Components: Compiler (Java)
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>            Priority: Minor
>         Attachments: thrift-138-v2.patch, thrift-138-v3.patch, 
> thrift-138.patch
>
>
> It'd be nice to be able to make a copy of a Thrift object by passing it as an 
> argument to the constructor of the same object. Right now, we have to use a 
> serialize/deserialize approach to making a deep object copy, and that seems 
> really inefficient.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to