The following gives a syntax error, is this intended? It seems to me as the most natural way to break long comprehensions into several lines:

```
x = randn(100)
[x[i]
for i in 1:100
if x[i] < 0.5]
syntax: expected "]"
```

The following gives a syntax error, is this intended? It seems to me as the most natural way to break long comprehensions into several lines:

```
x = randn(100)
[x[i]
for i in 1:100
if x[i] < 0.5]
syntax: expected "]"
```

Your example works in v0.6.

3 Likes

great, I didn’t try that before.

In the meantime,

```
[x[i]
for i in 1:100 if
x[i] < 0.5]
```

is a workaround on `0.5.0`

.