Re: [dev] Coding style: why /* */ and not //?

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Thu, 27 Dec 2018 15:47:46 +0100

[2018-12-27 08:01] Cág <ca6c_AT_bitmessage.ch>
> Silvan Jegen wrote:
>
> > I also prefer // (mostly because to insert those I can just do a block
> > insert in vim/vis). The only downside of //-style comments that I can
> > see is that they are only allowed since C99[0].
> >
> > Maybe I am missing something too though.
>
> I use vi[0] and have this in my .exrc:
> map q 0i/* ^[$a */^[hh
>
> (Those are literal escapes)
>
> You press "q", and the line is commented out.

Ah, it's definitely (macro-)scriptable but I am just too lazy to do it :P

I thought I may be missing some other disadvantage of using //-style
comments...

Thanks for the input in any case!


Cheers,

Silvan
Received on Thu Dec 27 2018 - 15:47:46 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 27 2018 - 15:48:09 CET