On Thu, 2004-12-02 at 09:19 +1300, Len Trigg wrote:
> Phillip Lord <[EMAIL PROTECTED]> wrote:
> > >>>>> "Kai" == Kai Grossjohann <[EMAIL PROTECTED]> writes:
> > Kai> I had been using Eclipse for some time a year ago. One thing I
> > Kai> really liked about it was the quickfix functionality. When the
> > Kai> compiler found an error in your source code, you could hit
> > Kai> Ctrl+1 to pop up a little menu which suggested some remedies.
> >
> > Kai> Because I missed it so much, I investigate whether it would be
> > Kai> possible to get this in Emacs, as well. It seems it would be
> > Kai> possible in principle.
> >
> > I think this sort of functionality would be great, particularly within
> > JDE.
>
> I haven't really used Eclipse, but have seen the quickfix feature.
> Are there different categories of quick fixes?
My previous boss was a huge fan of Eclipse. He took its advice on
everything and very quickly reduced our entire code-base to a broken
mess that Eclipse pronounced as "perfect", but which no longer worked at
all. We had to revert to a working version and ban people from using
quickfix.
For example (I have no idea if Eclipse still does this), I recall we had
a statement like
int foo = stream.read(buffer);
Unfortunately Eclipse saw that foo wasn't being used anywhere and told
my boss that the appropriate "fix" was to comment-out the entire
expression, which he did.
Of course anyone can wreak havoc if they don't bother to think, but I
would vote for sensible defaults (e.g. quickfix is off by default, and
when you switch it on it only suggests fixes when the compiler says
something is wrong - not when it thinks it can "improve" working code).
Just my two cents.
Cheers,
Bill.
--
"If you give someone Fortran, he has Fortran. If you give someone Lisp,
he has any language he pleases." -- Guy Steele