Infinite Loop

Causing Chaos with a Twist of Fate

In the world of Neo-Brutalist, an infinite loop is a self-referential paradox where a function, loop, or recursion never actually ends.

Example 1: The Recursive Function

        
          def recursive_function(x):
          return x * recursive_function(x)
        
      

Causes the computer to run out of memory, but still returns undefined.

Example 2: The Looping Loop

        
          while True:
          print("Infinite Loop")
        
      

Prints "Infinite Loop" forever, but never actually ends.

Example 3: The Recursive Function Call

        
          def factorial(n):
          return n * factorial(n)
        
      

Results in a factorial of undefined for any input.

Learn more about the infinite loop paradox.