# change while syntax · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/698829b772fe39c4311a75b20324256b8d7392b1)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 698829b772fe39c4311a75b20324256b8d7392b1

Requested commit: 698829b772fe39c4311a75b20324256b8d7392b1

Commit: 698829b772fe39c4311a75b20324256b8d7392b1

Tree: c1434e819ef38698a79a711c164ca62d9418a9c7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

````
change while syntax

Old:

```
while (condition; expression) {}
```

New:

```
while (condition) : (expression) {}
```

This is in preparation to allow nullable and
error union types as the condition. See #357

````

## Parents

- [644ea2dde9fbb1f948cf12115df2a15e908f3c29](https://git.cafe/gitcafe/zig/commit/644ea2dde9fbb1f948cf12115df2a15e908f3c29?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/698829b772fe39c4311a75b20324256b8d7392b1?format=markdown)
