Re: LuanTable constructors

Posted by Hugo <Nabble> on
URL: https://old-forum.luan.software/LuanTable-constructors-tp91p99.html

This is a minor issue, so it is okay for now. It seems to me that LuanTable would be more flexible if it held a collection like I suggested (instead of a List). I am also not sure why you force <Objects> instead of <? extends Object>. But you can decide about this because I don't understand the code well enough.

Besides that, I believe you would be able to simplify the (deep)cloning code by using serialization/deserialization to/from byte code. Cloning the entire graph of objects would be just a few lines of code, but would require objects to implement the Serializable interface. Did you consider that option?

EDIT: ... to/from byte array.