supervillain
supervillain copied to clipboard
Self-referential (aka Recursive) types cause an infinite loop
Simple one, just needs a lookup table of what's already been processed.
type X {
Children []X
}
Or
type Y {
Child X
}
type X {
Children []Y
}
etc