Giter Club home page Giter Club logo

Comments (4)

zbyti avatar zbyti commented on May 24, 2024

But in general I find recursion useless on 8-bit systems ;)

from mad-pascal.

GSoftwareDevelopment avatar GSoftwareDevelopment commented on May 24, 2024

Don't take away the ability to create recursion. Allow it, however, let it be known that it has its limitations.

Finally, MAD Pascal, allows you to call other procedures/functions from procedures/functions, repeatedly going deep into the "call tree".
After all, this is the same as recursion, except that different procedures/functions are called.

The call stack is small (I don't know what kind - maybe you can write about it?), but it allows to do that in the simplest form (without optimization).

In general, if recursion is used, it's mostly with a small number of parameters - which is also important for the number of iterations.

I think that recursion is one of the most important features of a language - if you deprive Pascal's MAD of it, it can lose its usefulness.

Translated with www.DeepL.com/Translator (free version)

from mad-pascal.

zbyti avatar zbyti commented on May 24, 2024

Most important for me is more space on ZP than ability to use recursion on relatively big (on 8-bit) stack on ZP.

I proposed tail recursion witch is fine on small systems.

from mad-pascal.

zbyti avatar zbyti commented on May 24, 2024

doesn't matter anymore

from mad-pascal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.