3 ms·
> Most of the time, though, you are working with structures that are not complete. And worse, completing them will not be a process that goes in the same direc
by pjc50 2y ago
> Most of the time, though, you are working with structures that are not complete. And worse, completing them will not be a process that goes in the same direction as the text. You will have to start a stack in how you are processing things to complete as you go.
This is very insightful. A program that is being edited passes through all sorts of incomplete states. Non-structured editors will let you do things like paste mismatched braces .. which sometimes you definitely deliberately want to do!
Edit: someone else makes this point at greater length https://news.ycombinator.com/item?id=42612969 https://news.ycombinator.com/item?id=42612969