www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Bikeshedding alert: Pragma naming convention

reply "David Nadlinger" <see klickverbot.at> writes:
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
next sibling parent reply =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= <alex lycus.org> writes:
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?

 David

I 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
next sibling parent =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= <alex lycus.org> writes:
On 06-12-2012 16:34, David Nadlinger wrote:
 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

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.org
Dec 06 2012
prev sibling parent Jacob Carlborg <doob me.com> writes:
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
prev sibling next sibling parent "David Nadlinger" <see klickverbot.at> writes:
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
prev sibling parent "David Nadlinger" <see klickverbot.at> writes:
On Thursday, 6 December 2012 at 15:37:12 UTC, Alex Rønne Petersen 
wrote:
 On 06-12-2012 16:34, David Nadlinger wrote:
 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

To be fair, that's because most of them use abbreviations...

I was referring to things like D_NoBoundsChecks, or MIPS_O32_SoftFP, which use a mix of Pascal casing and underscores. David
Dec 06 2012