Re: [hatari-devel] Remove C++-style comments

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


> Am 03.11.2024 um 18:03 schrieb Vincent Rivière <vincent.riviere@xxxxxxxxxxx>:
> 
> On 03/11/2024 at 13:17, Thomas Huth wrote:
>> Honestly, I'm not sure whether we should really enforce the comment markers
>> in Hatari like this. Using "/* ... */" was important 20 - 30 years ago when
>> not all C compileres were able to deal with "//" comments yet, but these
>> times are clearly over.
> 
> Well, it's just a matter of standard.
> 
> - If you decide that Hatari is written in C89, then you must forbid // comments, as they aren't part of the standard.
> 
> - But if you decide that Hatari is written in C99, then you should allow // comments, as they are part of the standard. Except if you want to ban // comments for some other reason. Every project has his own rules.
> 
> Just my 2 cents.
> 
> --
> Vincent Rivière

I don‘t think that // needs to be banned. I just thought it would make sense to clean them from files that mainly use /**/. It won‘t hurt anything if someone uses // again.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/