Skip to content

Party mods with "redeclaration means addition" #2

Description

@hazer-hazer

Now, mods cannot be redeclared as they're just items as others (funcs, structs, etc.)
Anyway, sometimes it can be convenient to "add" something to existent mod.
I propose this syntax:

party mod a {
     func foo {}
}

party mod a {
     func bar {}
}

As a result, we got a one mod a which includes both func foo and func bar.
This is pretty much like what C++ does.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaNew idea

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions