-
Notifications
You must be signed in to change notification settings - Fork 207
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
Partial classes - feature proposal #678
Comments
Love this feature. Metaprogramming and code-gen is being discussed in #1482 and I'm working on the second version of my proposal (initially #1507) and the idea of where does the code go and how can it be interacted with from other libraries is a big one. My driving principle is that generated code in a PS: I'm in favor of |
Love this feature |
I opened #1753 to discuss how modules might revive the discussion around partial classes by answering some fundamental question, and how code-generation boosts the need for this feature. |
@munificent – I'm MORE than happy to close this out and defer to https://github.com/dart-lang/language/blob/master/working/augmentation-libraries/feature-specification.md – just say the word! 😄 |
This would be great for protobuf as an example because then like C# the classes can be adorned with partial and then we can do things like add interfaces to the classes generated which can be vital when protobuf doesn't support generics but you want to know that a response type has a specific set of properties on it to work with (i.e. totalCount for paging etc.) |
@JohnGalt1717 not sure about your use case specifically, but you might want to look into extensions. Also:
|
A proposal to address request #252
Pending PR: #680
The text was updated successfully, but these errors were encountered: