3 ms·
Seems similar to HTML generation libs in Lisp, except with indentation instead of parenthesis.
by icebraining 10y ago
Seems similar to HTML generation libs in Lisp, except with indentation instead of parenthesis.
- TylerE 10y agoYes, and here at least, I think indentation is a BIG win over parenthesis.
- pg314 10y agoI 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?
- TylerE 10y agoYes, extensively. In any half-way modern editor indentation-aware copy and paste/block indent/dedent is super easy.
- pg314 10y ago> 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.