Overview of enhanced part files
mainEnhanced part files generalize library files, part files, and augmentation files into a consistent system. This feature allows part files to declare their own imports, addressing the limitation where all imports previously had to be declared in the main library file. This is particularly useful for:
- Large Libraries: Splitting tightly coupled classes into separate files while maintaining library privacy.
- Partial Declarations: Splitting a single class or declaration across multiple files (similar to partial classes in C#).
- Code Generation: Providing a structured way for augmentations and macros to add new code, imports, and exports to a library.