3 ms·
if x > 0: function1() function2() function3() if x > 0: function1() function2() function3() Where's the ambiguity? Please s
by still_grokking 4y ago
if x > 0:
function1()
function2()
function3()
if x > 0:
function1()
function2()
function3()
Where's the ambiguity?
Please show two or more possible ways to parse this code, as I still don't see it.
I see in each case only one way to parse the examples.
An ambiguity in parsing is something like that (in e.g. C++): `a<b>(c)`.
You could read it as an boolean expression `(a < b) > c` or as a call to a templated function `a<TemplateParam>(someType param)`.
But there is only one way to read the above code, imho.