• green_copper@kbin.earth
    link
    fedilink
    arrow-up
    8
    ·
    21 days ago

    Only if you need to implement everything as a recursive call. This scenario can be nicely implemented with a simple loop.

    • Bonsoir@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      21 days ago

      Even with a loop, if you consider that you haven’t finished looking into something until you’ve executed all sub-instructions, you would still have to keep track of everything in a stack. You would run out of memory at some point.

      • green_copper@kbin.earth
        link
        fedilink
        arrow-up
        2
        ·
        21 days ago

        If you interpret the text on her as a sub-instruction / call, then yes; you you interpret it as a direct (replacing) instruction / jump, then no.