3 ms·
Almost every language has whitespace sensitivity, it's just a matter of degrees. For instance, in C the following lines have different semantics: int a =
by Retra 11y ago
Almost every language has whitespace sensitivity, it's just a matter of degrees.
For instance, in C the following lines have different semantics:
int a = 3;
inta=3;
- rprospero 11y agoA more extreme form of whitespace sensitivity in C are the two following statements, which are identical and differ only in their whitespace. x = y++ + z; x = y + ++z;
- mercurial 11y agoThat's a pedantic argument. What "whitespace sensitivity" means when talking about Python/Haskell vs other languages is fairly well-understood (use indentation to delimit blocks). For my money, I'll take Python's consistent use of ":" to start a block, though.