grain-lang / grain-lang.org

The Grain language website.
56 stars 42 forks source link

document loops #339

Open almibe opened 1 year ago

almibe commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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