Sujet : Re: Which code style do you prefer the most?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 26. Feb 2025, 13:39:12
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vpn21i$2igoq$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 26.02.2025 12:43, Ar Rakin wrote:
I actually prefer /* */ comments over // comments. There is no specific
reason for this, I just tend to like it that way.
Heh! - And I prefer and use (for reasons of simplicity) the '//' form.
(Only if I want to comment out or in a larger piece of code I use the
other form.) - The good thing is that you can nest the two forms; e.g.
use of '//' for regular comments and use the other form for temporary
code activation/deactivation. - In practice I use // without thinking
whether it's supported by the "C" version I use, but it never was a
problem. BTW, I also use '//' for rather static long block comments,
but I have to admit that my editor (Vim) supports reformatting with
a few keystrokes; so others may prefer /* */ comments for that.
And yeah, I use Emacs, you *might* say it is ancient but I love Emacs.
There's no need to vindicate that. - There's reasons why folks stay
with ("ancient") Emacs and Vi/Vim!
Janis