commit
1b4b88b150
2 changed files with 3 additions and 0 deletions
1
changelogs/unreleased/924-schaeff
Normal file
1
changelogs/unreleased/924-schaeff
Normal file
|
@ -0,0 +1 @@
|
|||
Add details to for-loop documentation
|
|
@ -53,6 +53,8 @@ For loops are available with the following syntax:
|
|||
|
||||
The bounds have to be constant at compile-time, therefore they cannot depend on execution inputs. They can depend on generic parameters.
|
||||
|
||||
> For loops are only syntactic sugar for repeating a block of statements many times. No condition of the type `index < max` is being checked at run-time after each iteration. Instead, at compile-time, the index is incremented and the block is executed again. Therefore, assigning to the loop index does not have any influence on the number of iterations performed and is considered bad practice.
|
||||
|
||||
### Assertions
|
||||
|
||||
Any boolean can be asserted to be true using the `assert` function.
|
||||
|
|
Loading…
Reference in a new issue