Skip to content

Tutorial: Modules#18

Merged
forell merged 2 commits intomasterfrom
modules-tutorial
Feb 23, 2026
Merged

Tutorial: Modules#18
forell merged 2 commits intomasterfrom
modules-tutorial

Conversation

@ppolesiuk
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive tutorial documentation for the Fram language's module system, covering basic to advanced features.

Changes:

  • Added complete module system documentation covering basic module definition, nesting, file organization, and visibility controls
  • Documented advanced features including abstract members, module inclusion, method visibility, and named parameter packing/unpacking
  • Included practical examples demonstrating functors using existential types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


In the above example, the variables `foo`, `a`, `b`, and `c` are public
members of the module, while `bar` and `x` are private. The last line is
technically correct, but it is not recommended to use `pub` in this way.
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase "technically correct" is vague in documentation. Consider replacing with more precise language that explains why this pattern works but should be avoided, such as "This pattern is valid but not recommended" or simply "This is not recommended".

Suggested change
technically correct, but it is not recommended to use `pub` in this way.
valid but not recommended, and it is better to avoid using `pub` in this way.

Copilot uses AI. Check for mistakes.
Copy link
Member

@forell forell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty much perfect in terms of narration and content.

@forell forell merged commit 0ea4d89 into master Feb 23, 2026
6 checks passed
@forell forell deleted the modules-tutorial branch February 23, 2026 13:57
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.

3 participants