Skip to content

Commit

Permalink
add a warning where loop always require arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
bobzhang committed Dec 10, 2024
1 parent cd29192 commit f7fdedd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions next/language/fundamentals.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,10 @@ A functional loop consumes arguments and returns a value. It is defined using th
:end-before: end for loop 9
```

```{warning}
Currently in `loop exprs { ... }`, `exprs` is nonempty list, while `for {}` is accepted for inifinite loop.

Check warning on line 752 in next/language/fundamentals.md

View workflow job for this annotation

GitHub Actions / typo-check

"inifinite" should be "infinite".
```

## Iterator

An iterator is an object that traverse through a sequence while providing access
Expand Down

0 comments on commit f7fdedd

Please sign in to comment.