Ph0enixKM / Amber

💎 Amber the programming language compiled to bash
https://amber-lang.com
GNU General Public License v3.0
3.54k stars 70 forks source link

🐞 Allow recursive functions #83

Open asm0dey opened 1 month ago

asm0dey commented 1 month ago

Currently if I make a recursive call, it fails: the function is not visible from inside itself. Some recursive call are hard to translate to loops, which makes it harder to write a code.

Ph0enixKM commented 1 month ago

It can be fairly easy to implement. Not an important feature for now but it's good to keep this idea in mind

asm0dey commented 1 month ago

It would be really nice to have to, for example, traverse a directory tree, looking for files matching certain criteria