Leading blanks, optional semicolon at end of line, and intermittent comments / new lines
Leading blanks after end of line and a semicolon at end of file cause syntax errors. The leading blanks might be annoying in interactive use and the semicolon in scripts when commenting out the statements after a semicolon (one has to comment the semicolon too). In other words these two programs should be parsable:
print(0)
print(1)
print(1);
Also this is a valid input:
b =
#;
3
c
=
5
a =
"""comment"""
true
Is it meaningful to support this syntax? Is it not better to support only well readable input?
Edited by Ivan Kondov