Skip to content
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

Add while loops and add linked list example with while loops #32

Merged
merged 6 commits into from
Oct 24, 2024

Conversation

xFrednet
Copy link
Collaborator

Dyrona has gotten quite expressive, writing the example was pretty easy.

I also love builtin functions, the option to hide nodes from mermaid is really helpful. That way I was able to create this beautiful diagram:

image

Comment on lines 10 to 15
# Identifiers
cond = False
while cond == True:
never = "mind"
while cond:
never = "mind"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some of the tests could do with some comments. I am not sure what all the bits are testing.

This can be a problem if a test starts to fail, as then it is not clear what has gone wrong.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fair point, I've added comments and added a unreachable() function which would exit with an error. This seems better than the never = "mind"

@xFrednet xFrednet merged commit fd7ec03 into main Oct 24, 2024
5 checks passed
@xFrednet xFrednet deleted the 0-strech-for branch October 24, 2024 14:30
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