# Don't use \.none_or_ref for for\(expr\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 3a3704be05adcf929353e836222399885d1d99fb

Requested commit: 3a3704be05adcf929353e836222399885d1d99fb

Commit: 3a3704be05adcf929353e836222399885d1d99fb

Tree: 5ae8a603ed54f997aa7d137d92004b7bacc30804

Author: Robin Voetter

Committer: Andrew Kelley

## Message

```
Don't use .none_or_ref for for(expr)

We can already know whether the user want the expression to be a pointer or
ref based on whether the asterisk token is used, like with if and switch.

```

## Parents

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

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