solomono / kiama

Automatically exported from code.google.com/p/kiama
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Use copy methods on case classes for cloning #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the rewriting module we use a home-grown technique for creating a clone of a 
term with some 
or all of the children changed.  It should be possible to use the new Scala 
2.8.0 copy methods for 
case classes to achieve this in a more standard fashion.

Original issue reported on code.google.com by inkytonik on 2 Jun 2009 at 12:38

GoogleCodeExporter commented 9 years ago

Original comment by inkytonik on 14 Jun 2009 at 9:17

GoogleCodeExporter commented 9 years ago

Original comment by inkytonik on 14 Jun 2009 at 9:19

GoogleCodeExporter commented 9 years ago

Original comment by inkytonik on 5 Nov 2009 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by inkytonik on 6 Nov 2009 at 1:29

GoogleCodeExporter commented 9 years ago

Original comment by inkytonik on 7 May 2010 at 3:52

GoogleCodeExporter commented 9 years ago

Original comment by inkytonik on 26 Jul 2010 at 5:06

GoogleCodeExporter commented 9 years ago

Original comment by inkytonik on 26 Jul 2010 at 5:07

GoogleCodeExporter commented 9 years ago
It seems that this is not possible.  There is no current way to replace all 
children with copy.  In any event, we are developing a more general solution 
for interfacing with a variety of data structures, so support for case class 
cloning (or duplication) will be wrapped up in that.

Original comment by inkytonik on 21 Oct 2010 at 3:04