• Dr. Moose@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    13 hours ago

    Took me a while to get it because it’s a bit of a stretch but still somewhat funny

    • frezik
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      Yes.

      Structure and Interpretation of Computer Programs makes a distinction between recursive procedures and recursive process. A recursive procedure calls itself, but the compiler or runtime could potentially process it in an iterative way. The stack won’t blow up. A recursive process, however, will always blow up the stack if left unchecked.

    • qarbone@lemmy.world
      link
      fedilink
      English
      arrow-up
      19
      ·
      18 hours ago

      I wouldn’t even really call this recursion. This is closer to a wrapper around the enjoy function to set variables so that “enjoy” doesn’t throw an error.

  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    13 hours ago

    Out of milk: Killed process 8008135

    Or, alternately, if step one doesn’t internally handle the cap being missing it silently hangs or halts there, and the user is too busy catatonically staring at the spout to enjoy anything.