• irdc@derp.foo
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    People would learn bad habits.

    For example, due to parameter passing often being done via the zero page, recursion is unnecessarily hard on the 6502, whereas one could argue that recursion is one of the major skills to master for any programmer.

    • Richard@mastodon.social
      link
      fedilink
      arrow-up
      5
      arrow-down
      2
      ·
      1 year ago

      @irdc @feoh All programmers need to learn recursion and fully understand it so when they encounter it in the wild they can properly analyze what it is doing and replace it with non-recursive code.

      • irdc@derp.foo
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        A non-recursive recursive descent parser isn’t any easier to reason about.

    • feoh@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      One could, but I would argue that this idea pre-supposed a very ascetic class of programmer, and that depending on one's goals in learning how to program, recursion can be a useful concept but saying it should be the one litmus test for any learning platforms seems highly questionable to me.