deep-copy icon indicating copy to clipboard operation
deep-copy copied to clipboard

Implement generics?

Open ivanjaros opened this issue 3 years ago • 1 comments

Just food for thought about implementing generics for comparable types to simplify reflection if possible. comparable is now a built-in interface so it should be fairly easy to check via reflection or type assertion.

ivanjaros avatar Nov 25 '22 17:11 ivanjaros

Hi,

The generated code doesn't really use reflection. Do you have an example of where using a comparable constraint would help improve things?

urandom avatar Dec 27 '22 14:12 urandom