Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
November 27, 2012 Bikeshedding alert: Pragma naming convention | ||||
---|---|---|---|---|
| ||||
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 |
December 06, 2012 Re: Bikeshedding alert: Pragma naming convention | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | 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 |
December 06, 2012 Re: Bikeshedding alert: Pragma naming convention | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | 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
|
December 06, 2012 Re: Bikeshedding alert: Pragma naming convention | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | 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 |
December 06, 2012 Re: Bikeshedding alert: Pragma naming convention | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | 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 |
December 06, 2012 Re: Bikeshedding alert: Pragma naming convention | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | 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
|
Copyright © 1999-2021 by the D Language Foundation