digitalmars.D - Bikeshedding alert: Pragma naming convention
- David Nadlinger (5/5) Nov 27 2012 Do you have any preferences regarding the naming convention for
- =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= (7/12) Dec 06 2012 I vote in favor of camelCase because it's the style we use for non-type
- David Nadlinger (4/6) Dec 06 2012 Well, the version identifiers use, erm, something else… ;)
- =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= (8/13) Dec 06 2012 To be fair, that's because most of them use abbreviations...
- David Nadlinger (5/15) Dec 06 2012 I was referring to things like D_NoBoundsChecks, or
- Jacob Carlborg (5/6) Dec 06 2012 Some are based on the macro used C, some are based on the name of the
Do you have any preferences regarding the naming convention for compiler pragmas? http://dlang.org/pragma.html seems to suggest all_lowercase_and_underscors for names consisting of multiple words – other opinions? David
Nov 27 2012
On 27-11-2012 23:35, David Nadlinger wrote:Do you have any preferences regarding the naming convention for compiler pragmas? http://dlang.org/pragma.html seems to suggest all_lowercase_and_underscors for names consisting of multiple words – other opinions? DavidI vote in favor of camelCase because it's the style we use for non-type identifiers virtually everywhere. -- Alex Rønne Petersen alex lycus.org http://lycus.org
Dec 06 2012
On Thursday, 6 December 2012 at 12:39:41 UTC, Alex Rønne Petersen wrote:I vote in favor of camelCase because it's the style we use for non-type identifiers virtually everywhere.Well, the version identifiers use, erm, something else… ;) David
Dec 06 2012
On 06-12-2012 16:34, David Nadlinger wrote:On Thursday, 6 December 2012 at 12:39:41 UTC, Alex Rønne Petersen wrote:To be fair, that's because most of them use abbreviations... But if you see that becoming a similar trend with pragmas, then we can go down that road I suppose. -- Alex Rønne Petersen alex lycus.org http://lycus.orgI vote in favor of camelCase because it's the style we use for non-type identifiers virtually everywhere.Well, the version identifiers use, erm, something else… ;) David
Dec 06 2012
On Thursday, 6 December 2012 at 15:37:12 UTC, Alex Rønne Petersen wrote:On 06-12-2012 16:34, David Nadlinger wrote:I was referring to things like D_NoBoundsChecks, or MIPS_O32_SoftFP, which use a mix of Pascal casing and underscores. DavidOn Thursday, 6 December 2012 at 12:39:41 UTC, Alex Rønne Petersen wrote:To be fair, that's because most of them use abbreviations...I vote in favor of camelCase because it's the style we use for non-type identifiers virtually everywhere.Well, the version identifiers use, erm, something else… ;) David
Dec 06 2012
On 2012-12-06 16:34, David Nadlinger wrote:Well, the version identifiers use, erm, something else… ;)Some are based on the macro used C, some are based on the name of the operating system, some are based on something else. -- /Jacob Carlborg
Dec 06 2012