News for hackers. Stuff that matters.
Re:Stem, a stack-based language with metaprogramming and a C... by jkafjanvnfaf on Saturday January 27, 2024 @03:48AM (#39153835)
For completeness, there are languages that do not require stacks to implement (nor any workarounds that in practice emulate a stack). If you do not support explicit recursion, you don't need one. All variables can be statically allocated and only a single return address needs to be stored for each function, so you do not need a stack for return addresses either.

The most famous example is FORTRAN, until 1990 when they added RECURSIVE directive.

Re:Stem, a stack-based language with metaprogramming and a C... by FwarkALark on Saturday January 27, 2024 @05:38PM (#39160622)
Ok sure, but FORTRAN still uses a stack in any of its relevant forms.