D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
dullbananas (Joseph Silva)@lemmy.ca to Programmer Humor@programming.devEnglish · 4 months ago

recursion

lemmy.ca

message-square
11
fedilink
134

recursion

lemmy.ca

dullbananas (Joseph Silva)@lemmy.ca to Programmer Humor@programming.devEnglish · 4 months ago
message-square
11
fedilink
  • Jumuta@sh.itjust.works
    link
    fedilink
    arrow-up
    40
    ·
    4 months ago

    is tail recursion really recursion?

    • qarbone@lemmy.world
      link
      fedilink
      English
      arrow-up
      26
      ·
      4 months 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.

      • entropicdrift@lemmy.sdf.org
        link
        fedilink
        arrow-up
        9
        arrow-down
        1
        ·
        4 months ago

        The more accurate, yet not at all funny interpretation

        • qarbone@lemmy.world
          link
          fedilink
          English
          arrow-up
          4
          ·
          4 months ago

          I find it as funny as the original post

        • HeckGazer@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          4 months ago

          The best kind of funny

    • sik0fewl@lemmy.ca
      link
      fedilink
      arrow-up
      18
      ·
      4 months ago

      Depends on your optimization level.

    • MajorHavoc@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      4 months ago

      Oh. Now I get it. Thanks.

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      1
      ·
      4 months 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.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 797 users / day
  • 5.71K users / week
  • 9.85K users / month
  • 19K users / 6 months
  • 10 local subscribers
  • 23.9K subscribers
  • 1.36K Posts
  • 44K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: unknown version
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org