Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Feature request: Block comment

$
0
0

I know this has come up before but not for some time so I'll suggest it again.

I comment my code heavily, and often with multi-line and even paragraph-long comment blocks. Unfortunately the comment tool provided by Fortran is a real impediment to doing this, because (1) I must put a hard new line at the end of each line, and the VS editor does not usually return the cursor to the previous "!"; and (2) worse yet, editing an existing comment to increase the length of a line is so difficult that I am tempted to forget it, or reword and abbreviate awkwardly to avoid extending past my favorite length limit (I don't like to go past line 80).

Why can't the standards committee introduce a block comment syntax? I would suggest something like ![ to begin, and ]! to end, or !{ and }! (for C die-hards). This would make comments much easier to enter and more readable as well.

In addition, the VS editor should be able to handle line wrap to a user-defined right margin. Or even in the absence of an official Fortran syntax, the VS editor should be able to reformat block comments, using line wrapping to a pre-defined right margin while maintaining the leading ! on each new line.

Is there any reason why this shouldn't be done? Seems like a no-brainer to me.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>