|
|
|
|
|
by gavinhoward
1121 days ago
|
|
Notes on paper are for humans. Programming languages are for humans and machines. Machines do better with braces. (I've written lexers for both.) Also, try to write an automatic formatter for a whitespace-delimited language; if your indentation is wrong, your logic is wrong, whereas with a brace language, if your indentation is wrong, you run a formatter, and it's all golden. |
|
In a brace-based language, if your braces are wrong, your logic is wrong. How is that better? At least a mistake in indentation is much easier for a human to spot.