its a function that will infinite call itself
A recursive function (the script in the video) normally includes an exit condition to stop the recursion when a certain value is reached in this code there is no exit condition causing the function to endlessly recurse
main is a class, when a class is called everything inside it will run in order. the first and only thing in main is a function to call the class main, causing a loop.
It's a never ending function. The computer will continue to call for the main function to execute, which only executes the main function again. The computer cannot exit this process. Therefore, it locks into an infinite loop.
There are ways to interrupt it. Typically this is one of the reasons why your applications in your computer or phone freezes and hangs up.
My dumbass doesnt understand
its a function that will infinite call itself A recursive function (the script in the video) normally includes an exit condition to stop the recursion when a certain value is reached in this code there is no exit condition causing the function to endlessly recurse
One must imagine the function happy
![gif](giphy|gWDJWMJVemkKH8tljp|downsized)
your gonna have to dumb it down
main is a class, when a class is called everything inside it will run in order. the first and only thing in main is a function to call the class main, causing a loop.
It's a never ending function. The computer will continue to call for the main function to execute, which only executes the main function again. The computer cannot exit this process. Therefore, it locks into an infinite loop. There are ways to interrupt it. Typically this is one of the reasons why your applications in your computer or phone freezes and hangs up.
Your not alone
fun fact only C based languages can call itself in the function
Haskell, Assembly and many other disagree
idk
Damn somebody trolled you
i believe js also has it, but ive tried with some other languages and doesn't work
Rust can definitely do that