Re:Foolproof HTML
by TylerE on Saturday February 04, 2017 @06:41PM
(#13569782)
Yes, and here at least, I think indentation is a BIG win over parenthesis.
[ Parent
| on HN ]
I disagree. When you want to move a block of code around, it makes it too easy to make mistakes. Or if you want to add e.g. a div around a bunch of other elements, you need to be very careful with the indentation.
I've worked with both: s-expression based syntax and whitespace-sensitive syntax. I'll take s-expression based syntax any time. Have you used both?
Yes, extensively.
In any half-way modern editor indentation-aware copy and paste/block indent/dedent is super easy.
> In any half-way modern editor indentation-aware copy and paste/block indent/dedent is super easy.
Sure. But I've made mistakes in Python because I didn't select e.g. the last line of a region.
If you've used both extensively and prefer whitespace to sexps, that's totally valid. De gustibus non est disputandum.