Skip to content

Add recursion and tail call recursion to Eluids Eggs #756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

ceddlyburge
Copy link
Contributor

No description provided.

Copy link
Contributor

@jiegillet jiegillet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's true that this one uses tail call recursion, but I think we were trying to keep it low on the concept tree. If we add tail recursion as a prerequisite, it won't be available very soon.
Anyway, I don't really have a problem with it, I just remembered this is something that was discusses. I'll approve and leave it up to you :)

@ceddlyburge
Copy link
Contributor Author

Hmmm, do you know where was this chat on keeping it low on the concept tree? And is there any reason for that?
It looks like a great practice exercise for recursion, it's simple and nearly all the complexity is in the recursive bit

@jiegillet
Copy link
Contributor

Hmmm, do you know where was this chat on keeping it low on the concept tree? And is there any reason for that? It looks like a great practice exercise for recursion, it's simple and nearly all the complexity is in the recursive bit

Here it is. OK I'll be honest it, if was more of a single comment than a chat 😛

I'm not saying this is not a great exercise for recursion, it sure is, it just move the exercise deeper in the tree. But yes, you're right, if you don't know what recursion is, you won't be able to solve this exercise properly, let's merge this.

@ceddlyburge ceddlyburge merged commit 2ecff6a into main Jun 27, 2025
7 checks passed
@ceddlyburge ceddlyburge deleted the ceddlyburge-patch-1 branch June 27, 2025 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants