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

From: Cág <ca6c_AT_bitmessage.ch>
Date: Thu, 27 Dec 2018 08:01:56 -0600

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.


[0]: https://github.com/n-t-roff/heirloom-ex-vi

--
caóc
Received on Thu Dec 27 2018 - 15:01:56 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 27 2018 - 15:12:07 CET