Line breaks in comprehension syntax


#1

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 "]"

#2

Your example works in v0.6.


#3

great, I didn’t try that before.


#4

In the meantime,

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

is a workaround on 0.5.0.