From f7fdeddad231082a2002ec1bf38bfac50f92c12e Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Tue, 10 Dec 2024 14:53:29 +0800 Subject: [PATCH] add a warning where loop always require arguments --- next/language/fundamentals.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next/language/fundamentals.md b/next/language/fundamentals.md index 48183759..06d09c17 100644 --- a/next/language/fundamentals.md +++ b/next/language/fundamentals.md @@ -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. +``` + ## Iterator An iterator is an object that traverse through a sequence while providing access