Skip to content

[spec/module] Improve docs#23306

Open
ntrel wants to merge 2 commits into
dlang:masterfrom
ntrel:module-decls
Open

[spec/module] Improve docs#23306
ntrel wants to merge 2 commits into
dlang:masterfrom
ntrel:module-decls

Conversation

@ntrel

@ntrel ntrel commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Add 2 headings.

Grammar:
Move AliasAssign from Declaration to DeclDef, it is not a statement (and it conflicts with ExpressionStatement).
Add & use AggregateMember group for DeclDef (these are conceptually different from other DeclDef, so its natural to group them).
Remove ConditionalDeclaration from DeclDef as it is also in Declaration.
Explain Declaration vs DeclDef.
Mention aggregates.

Modules resemble structs more than classes.
Modules can have attributes (deprecated and UDAs).
Remove list formatting when there's only one item.

ntrel added 2 commits June 24, 2026 12:38
Add headings.
Move *AliasAssign* from *Declaration* to *DeclDef*, it is not a
statement (it conflicts with ExpressionStatement).
Add & use AggregateMember group for DeclDef.
Remove ConditionalDeclaration from DeclDef as it is also in Declaration.
Explain Declaration vs DeclDef.
Mention aggregates.
Modules resemble structs more than classes.
Modules can have attributes.
Remove list formatting when there's only one item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants