News for hackers. Stuff that matters.
Re:Xz: Can you spot the single character that disabled Linux... by eru on Monday April 01, 2024 @10:38PM (#39901857)
But you either make visual indentation significant, or you risk having a discrepancy between visual indentation and what the language sees.
Re:Xz: Can you spot the single character that disabled Linux... by worik on Monday April 01, 2024 @10:55PM (#39901938)
> But you either make visual indentation significant...

That would be Python. I do not like it, which does not mean it is bad, it is a matter of taste

The alternative is you say "blocks are delimited by {}"

`if(foo) bar` should be invalid

`if(foo){bar}` is OK by me. Worik's tick of approval

(Neither is valid C I think)

Re:Xz: Can you spot the single character that disabled Linux... by eru on Tuesday April 02, 2024 @04:03AM (#39903367)
> That would be Python.

Not necessarily. In practice, in C-as-actually-used people (should) set up linters and formatters, so that you can rely on indentation.

When programming, this means that you can behave as if both curly braces and indentation are significant, and you get an error when they are out-of-sync.