| 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: Vincent Rivière <vincent.riviere@xxxxxxxxxxx>
- Date: Sun, 3 Nov 2024 18:03:15 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20230601; t=1730653397; x=1731258197; darn=lists.tuxfamily.org;        h=content-transfer-encoding:in-reply-to:from:content-language         :references:to:subject:user-agent:mime-version:date:message-id         :sender:from:to:cc:subject:date:message-id:reply-to;        bh=DGHwlVQcFnNcoHQshtDfhlXPfDmRtU3aotyJWRH/ebE=;        b=IZ7xkFvPHO1oQ+z+iwhKCLI/nqSO7DjQoD/Kdl6PVGnoPCWvqzfGml21GZ4KRIfqC4         /aEGyz81HlxpkuoN13pKGg7NYJhwGOxZmmwA3j4APJXoeWrfej3Nwt69S70ixCcDizBp         QuwgkK4v6ibkoH5ZA46qN3CxcDHdmsketlXAdiUvpmnLIOb5vODi/ifmFCByMAZWc4hZ         jbl+eQyktmWyDZjdkiUcIM18Vafep1yrUcuLqJDwJe2NpD3tKDlRGGEvsafaLpR3/mXp         Iq0RnSl329fTLz8dfQlKN0sjnvKKvwgLdlnLhO1yuV88qvQr9VI8Ny35K54EE6Y53FW0         Fd4w==
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