Re: [hatari-devel] Remove C++-style comments |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Remove C++-style comments
- From: Andreas Grabher <andreas_g86@xxxxxxxxxx>
- Date: Sun, 3 Nov 2024 18:26:13 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1730654779; bh=PxA0sucs/u7FHNFTVo6AAX3j2m2nsDiQYdmoDsWstKo=; h=Content-Type:From:Mime-Version:Date:Message-Id:Subject:To: x-icloud-hme; b=kvM5DR8BstsFZ3jgDKGHgtGHGWHXNLNCl4ikbeO5KamMKDzvtgD6vNkmlqDn4butF iK11t+uCWu3Ph7x0SEYAgR5N2AeTY+z+jDweDl2R2/fRRSHJHoRUBL+uUJjgru6o3A gcZ8/VOt0TgOhRVudfIFTM2LASQ6v1RkCY2atg4Gd/DnhGTPqm/C4QdeDRW/zzuZj2 XEYE1BUW4MzkZmZJMiFCHlH7E6FSZPK1fvx8GB5U3ORWzkqGyK6xHVLE80FZ5SIEr9 GAMBMIwLadrSfZsXzBgbZSSuQgSgglNdK4Km8+ixyhjoRymWdXcmVUsVqhRTw1Qpi8 N1TdPabJcA3Ng==
> 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.