|
|
|
|
|
by AceJohnny2
3934 days ago
|
|
"Amazingly, surprisingly, counterintuitively, the indentation problem is almost totally orthogonal to parsing and syntax validation. I'd never have guessed it. But for indentation you care about totally different things that don't matter at all to parsers. Say you have a JavaScript argument list: it's just (blah, blah, blah): a paren-delimited, comma-separated, possibly empty list of identifiers. Parsing that is pretty easy. But for indentation purposes, that list is rife with possibility!" -- Steve Yegge, 2008 [1] That really struck me back then, and I've kept it in mind whenever I hear about code beautifying/indenting. [1] http://steve-yegge.blogspot.com/2008/03/js2-mode-new-javascr... |
|