Hi Ben,
On Sat, Jun 16, 2012 at 5:36 AM, Ben Hutchison <
brhut...@gmail.com> wrote:
> As comments are maintained, text is added or moves around and line
> lengths change. There is no Reformat for Scala comments in a file to
> ensure they are a consistent width, eg max 120 chars. That feature
> would be tremendously useful for comment maintenance.
You raise a very good point. We're using Scalariform for formatting,
and there is a related issue:
https://github.com/mdr/scalariform/issues/4
Matt commented that it's not easy to fix. Maybe if more people demand
the feature, he'll implement it.
> Similarly, when entering comments the first time, it would be nice to
> have auto-wrap at a (eg 120) wrap threshold, rather than manually
> inserting newlines.
>
> Further, the tradition of prefixing every comment line with a *
> (inherited from Java, which inherited it from C/C++) works to obstruct
> maintenance, because if you move lines around, you end up with *
> symbols mixed through the text. In these days of syntax highlighting
> (even on github source browse), how important is a * to distinguish
> comments?
>
> Infuriatingly, the Scala editor seemingly insists on prefixing every
> line of a comment with a *, and offers no option to disable this
> unwanted feature (that actually /harms/ long-term maintainability).
>
> I suspect this unhappy feature set was inherited from Eclipse's Java
> editor.
Indeed.
> In total, they encourage a "write-once" approach to comments &
> Scaladocs, which detracts from their ongoing usefulness and accuracy.
>
> -Ben
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais