Comment

Comment by paradoxparalax

Once I encountered this curious recursion:'

Here sounds infinite loop maybe, but it should finishing calling each other (a calling b that calls a that calls b again...infinite...)

But when there is a Top maximum Parent that is the top of the parent child pyramid (like a html Body "div", I mean, the one that contains all others") It should stop...well

def a

self.insert //something to make it child of the parent, like a html structure maybe

b //call the second method, the b method below

end

def b

self.insert //same here, same logic//

a //call the first method, the a method above

end

thisHtmlDiv.a //crazy example

So the subject on which you call the method will be added in all the hierarchy chain of the parent child pyramid.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton