I’m playing with new syntax for recursion, using keywords “break-down” and “stop-when” and “decompose”.
Here’s an example of what it might look like for factorial
And here’s an example for fibonacci
Larger examples are mutilated by Substack’s editor. I’ve included a 3rd example - binary search - in the following .PDF
WIP
I haven’t settled on this syntax and welcome comments.
This idea might form the basis of English text that I will prompt an LLM with.
See Also
Email: ptcomputingsimplicity@gmail.com
References: https://guitarvydas.github.io/2024/01/06/References.html
Blog: guitarvydas.github.io
Videos: https://www.youtube.com/@programmingsimplicity2980
Discord: https://discord.gg/65YZUh6Jpq
Leanpub: [WIP] https://leanpub.com/u/paul-tarvydas
Twitter: @paul_tarvydas
Bluesky: @paultarvydas.bsky.social
Mastodon: @paultarvydas
Substack: paultarvydas.substack.com