newlines are part of the syntax everywhere in Julia... There's been a lot
of discussion on another thread here about just this issue...
if a
+b > 10
println("what happened!")
end
vs.
if a +
b > 10
println("very whitespace sensitive!")
end
On Wednesday, June 17, 2015 at 1:16:19 AM UTC-4, Andreas Lobinger wrote:
>
> Hello colleague,
>
> On Tuesday, June 16, 2015 at 11:16:18 PM UTC+2, Scott Jones wrote:
>>
>> Not whitespace sensitive? I thought julia was very whitespace
>> sensitive... blanks and newlines can make a big difference...
>> Did you just mean that julia is not sensitive to the number of
>> tabs/blanks (1 or more)
>>
>
> try python as an example of whitespace sensitivity...
> In julia you can move around code with whitespace very far until you get
> complaints by the parser. Newlines seem to be a part of the syntax
> somewhere, but without formal grammar that's hard to test.
>