Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Language idea: Consider removing the mandatory mod directive #50

Closed
alexrp opened this issue Mar 5, 2023 · 1 comment
Closed

Language idea: Consider removing the mandatory mod directive #50

alexrp opened this issue Mar 5, 2023 · 1 comment
Labels
area: language Issues related to the design of the language.
Milestone

Comments

@alexrp
Copy link
Member

alexrp commented Mar 5, 2023

Is there actually a good reason to have this in the language? Module lookup is probably not going to need it at all. Right now, the only function it serves is being able to attach certain well-known attributes to it. Perhaps we could find a different way to do that.

@alexrp alexrp added state: deliberation Issues that require design work and/or discussion. type: feature area: language Issues related to the design of the language. labels Mar 5, 2023
@alexrp alexrp added this to the v1.0 milestone Mar 5, 2023
@alexrp alexrp self-assigned this Mar 5, 2023
@alexrp alexrp closed this as completed Mar 7, 2023
@alexrp alexrp removed the state: deliberation Issues that require design work and/or discussion. label Mar 7, 2023
@alexrp
Copy link
Member Author

alexrp commented Mar 11, 2023

mod {
    pub fn add(x, y) {
        x + y;
    }
}

Approved for 1.0.

@alexrp alexrp removed their assignment Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: language Issues related to the design of the language.
Development

No branches or pull requests

1 participant