You're right. It's not necessary. I would go further and say that this syntax is a code smell.
little-cartoon-10569
11/30/2022, 7:29 PM
If you're doing the OO thing with ComponentResource, then you should not have anything at the top level of any file, and this syntax will not be necessary.
s
straight-energy-17452
12/01/2022, 7:16 PM
Interesting… that’s quite strong but perhaps right
straight-energy-17452
12/01/2022, 7:16 PM
In any case thank you for responding @little-cartoon-10569 🙏
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.