In the world of Neo-Brutalist, an infinite loop is a self-referential paradox where a function, loop, or recursion never actually ends.
def recursive_function(x):
return x * recursive_function(x)
Causes the computer to run out of memory, but still returns undefined.
while True:
print("Infinite Loop")
Prints "Infinite Loop" forever, but never actually ends.
def factorial(n):
return n * factorial(n)
Results in a factorial of undefined for any input.