News for hackers. Stuff that matters.
Re:Peano arithmetic is enough, because Peano arithmetic enc... by kazinator on Saturday June 14, 2025 @12:24PM (#44277257)
> I have to scan to see who does what with who.

Are you saying that parentheses introduce the problem of having to scan to see what goes with what?

As in, if we don't have parentheses, but still have recursive/nested structure, we don't have to scan?

Re:Peano arithmetic is enough, because Peano arithmetic enc... by doodlebugging on Saturday June 14, 2025 @03:40PM (#44278344)
For myself the issue goes back to my college mathematics courses, especially differential equations. I worked those homework problems by hand on a large format tablet, roughly 24" x 36", carefully laying them out step by step so that I could walk through them in the future and make sense of the solution process. Counting and matching parentheses was pretty critical since a missed parenthesis may not pop out at you like it would in a compiler error or by walking through code.

I automatically count and match even today, 40 years later.

Re:Peano arithmetic is enough, because Peano arithmetic enc... by Retr0id on Saturday June 14, 2025 @12:49PM (#44277389)
Python block indentation is an example of nested structure that's at least easier to visually scan. You don't need to count opening/closing parens, just look down a column of text - assuming nobody mixed tabs and spaces. (but I wouldn't go as far as saying you don't need to scan it)
Re:Peano arithmetic is enough, because Peano arithmetic enc... by User23 on Saturday June 14, 2025 @02:02PM (#44277765)
Canonically indented Lisp reads an awful lot like Python. You don’t read the braces, you read the indentation.