On Thu, May 26, 2011 at 17:24, Tim <[email protected]> wrote:
> Another problem is with line lengths. If you have a standard that
> limits lines to 100 chars (for example), that only makes sense with a
> monospace font. The practice of using tabs for indentation and
> everyone choosing their own tab size has the same problem.
>
> It might be better if you could store files with long lines and have
> the IDE wrap them intelligently when it displays them. As far as I
> can tell Eclipse doesn't do that. Do any others?
NetBeans 7.0 has implemented some kind of wrapping, but I haven't
tried it, so I don't know if it's smart or stupid.
smart might be:
for (x = .... ; <softwrap>
x < .... ; <softwrap>
x++) {
...
}
stupid might be:
for (x = ....; <softwrap>
x < ....; x++) { <softwrap>
...
}
XCode does provide soft wrapping which is 'not entirely stupid', but
indenting the continuation lines such that they fit in with the rest
of the code.
Sometimes I miss Think's Pascal. It pretty-printed your code
live-as-you-typed. The drawback was that comments could not contain
line breaks.
{ Since pascal didn't have ignore-to-end-of-line comments }
{ programs written with that editor tended to be }
{ commented like this, which was annoying. }
// Ben
--
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.