3 ms·
This goes back a long way, to, at least, a Cornell system circa 1980. It's usually been a teaching tool, for students having trouble with language syntax. LIS
by Animats 12y ago
This goes back a long way, to, at least, a Cornell system circa 1980. It's usually been a teaching tool, for students having trouble with language syntax.
LISP used to have very structured editors. One of the features of INTERLISP was that you could select a subexpression and pull it out as a function. A call to the function, with the correct parameters, then replaced the function. Conversely, you could select a function call and have it expanded in line. These were safe operations; they would not change the program semantics.
That's the key. The editor understood the semantics of the language, not just the syntax, and only performed safe transformations. This sort of thing is useful in program maintenance; when faced with a large function, you can safely break it apart into smaller ones.
C++ could really use a tool like that. It would be very hard to write. The tool has to perform only valid transformations, so it needs to know the language.
- sitkack 12y agoThis is the next phase of revision control, where tree transforms are stored in an edit list in the log. We will start to tag actions like we label commits. Transforms will be parameterized so we can pull them into our tree, merging them with our own transformations. If you use an IntelliJ product, you can put the carat inside an expression and iteratively expand the properly bounded selection with alt-up-arrow