14. Fragments
Decision
- Introduce
!ref,extendsand!includekeywords - Introduce
.dslfragment, aka.dslffile, support{ "id": "c4u", "extensions": [ ".dslf" ], "description": "Unstructured C4 DSL IDE support for snippet or fragment purpose.", "configuration": "./language-configuration.json", } - Use
.dslfto declareStructurizrfragments for reuse, and compose them inworkspace.dslvia the!includekeyword. All features but preview one are available within .dslf as well
Context
Workspaces are likely to sizably grow over time. As for code, it is not so much the amount of lines but the amount of responsibilities this single workspace is now in charge of that may become an issue and thus lead to changes.
As always with those controversial topics, YMMV, but we can foresee to common scenarios that may induce changes:
- Clustering teams contribution ie segregating
- Providing variations without noising reference ie branching