-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider whether we should remove namespace support from jsii #283
Comments
To be totally clear, the "namespace as a nested class" pattern is generally fine for Python (I don't know about other languages). The issue we've run into is the "pure" namespace like |
Rename generated CloudFormation resource constructs from `cloudformation.XxxResource` to `CfnXxx`. This fixes #878 and eliminates the use of namespaces in the CDK. This is done in a backwards compatible way, which means that we still generate the old resources under the `cloudformation` namespace so we can remove them in a subsequent release. Those resources also include a deprecation warning which is emitted upon `cdk synth`. Documentation updated to reflect changes. Related: aws/jsii#283 and aws/jsii#270
Removing this namespaces would prevent issues with language that do not support nested namespaces. If the concept of nested declaration is needed, using a submodule would be more flexible. But jsii should assert no circular module department exist |
Now that aws/aws-cdk#878 is resolved we can safely remove namespaces from Jsii |
We are seeing issues implementing interfaces in various languages (e.g. python #270). Those are also not considered a very good practice in typescript (aws/aws-cdk#878). Perhaps we should get rid of them in jsii?
The text was updated successfully, but these errors were encountered: