You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be intractable to use pascal case for the 2nd example (Ubuntu1404AndroidJava82611...), and we should also be cognizant that jsii languages need to be able to delimit words for case conversions (see #980).
I am proposing that we standardize (at the jsii level) that all enum member and static property names will always be snake upper case (e.g. like C constants).
Any objections?
The text was updated successfully, but these errors were encountered:
This isn't going to look "pretty" in JS/TS, but that's a sacrifice I'm willing to make.
The current problem outlined in #980 and several other issues (some in awslabs/jsii even) can't really be fixed in another way (that looks constant-y).
Currently, we use two conventions for enum member names:
Enum.PascalCase
(likelambda.Runtime.NodeJs8
)Enum.CAPS_SNAKE_CASE
(likecodebuild.LinuxBuildImage.UBUNTU_14_04_ANDROID_JAVA8_26_1_1
)It would be intractable to use pascal case for the 2nd example (
Ubuntu1404AndroidJava82611
...), and we should also be cognizant that jsii languages need to be able to delimit words for case conversions (see #980).I am proposing that we standardize (at the jsii level) that all enum member and static property names will always be snake upper case (e.g. like C constants).
Any objections?
The text was updated successfully, but these errors were encountered: