Why The D Style constants are written in camelCase?

bauss jj_1337 at live.dk
Wed May 9 09:51:37 UTC 2018


On Wednesday, 9 May 2018 at 09:38:14 UTC, BoQsc wrote:
> The D Style suggest to camelCase constants, while Java naming 
> conventions always promoted uppercase letter.
>
> Is there an explanation why D Style chose to use camelCase 
> instead of all UPPERCASE for constants, was there any technical 
> problem that would appear while writing in all UPPERCASE?
>
>
>
> Java language references:
> https://en.wikipedia.org/wiki/Naming_convention_(programming)#Java
> https://www.javatpoint.com/java-naming-conventions
> http://www.oracle.com/technetwork/java/codeconventions-135099.html
> https://medium.com/modernnerd-code/java-for-humans-naming-conventions-6353a1cd21a1
>
>
>
> D lang reference:
> https://dlang.org/dstyle.html#naming_constants

Just because.


More information about the Digitalmars-d-learn mailing list