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

document loops #339

Open
almibe opened this issue Dec 16, 2022 · 2 comments · May be fixed by #341
Open

document loops #339

almibe opened this issue Dec 16, 2022 · 2 comments · May be fixed by #341

Comments

@almibe
Copy link

almibe commented Dec 16, 2022

For and while loops don't seem to be documented (are those the only loops?). Maybe they could go on this page https://grain-lang.org/docs/guide/basics below if expressions? It would probably good to add a note about rec functions as an alternative to loops as well.

@ospencer
Copy link
Member

I'd probably give it its own page, probably after mutation. Since Grain is largely a functional language I think it'd be good to introduce them a bit later!

@ospencer
Copy link
Member

Taking a look over the docs as a whole, I think we should:

  • move mutation to before functions
  • add a page on arrays after lists
  • add a page after arrays explaining loops

@ospencer ospencer linked a pull request Dec 17, 2022 that will close this issue
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 a pull request may close this issue.

2 participants