Open rikivillalba opened 2 months ago
This seems like a bug to me.
One solution might be to stop filtering out dynamic properties from the constructor args. I.e., remove this line (and update tests to match)
https://github.com/RConsortium/S7/blob/ffb8ca92abeb6a51f0a3ecad88d46ad29e18a7ae/R/constructor.R#L51
The object constructor would then have signature function(action = "some action")
.
This intersects with https://github.com/RConsortium/S7/issues/376, where we are also discussing changing the object constructor signature.
When trying to access an uninitialized property that has a getter, a stack overflow occurs
as soon as I set a value the code works. Is this behaviour ok? default property value also does not help.