I know that might be a newbie and abstract question, but are there any best practices to use composition with Nim? To better explain, the manual says whenever there's inheritance ref objects should be used instead of common objects. Does this happen to composition too or in general whether there is a better way to create these objects (it's just out of curiosity cause I'm still learning the language itself)? I.E.
type
A = ref object #or just object(?)
x: int
y: B
B = object # same thing that before and vice versa
z: int