RConsortium / S7

S7: a new OO system for R
https://rconsortium.github.io/S7
Other
399 stars 33 forks source link

inlining obfucscates constructor defaults #477

Open lawremi opened 4 days ago

lawremi commented 4 days ago

It seems that we now inline S7 constructors/classes into the constructor formals when a class is composed of other S7 objects. This makes the defaults difficult to read, such as in the Rd usage. Class objects are also quite heavy (perhaps a problem to address in itself), so serializing "empty" objects results in multi-megabyte files and consumes a corresponding amount of time.

Perhaps we could rely on a heuristic to resolve class objects to their symbols in their originating namespace.