Skip to content

Rename import in thee case where it isn't an import #2

Closed
@sunfishcode

Description

@sunfishcode

In the explainer:

instanceexpr ::= (instantiate (module ) (import ))
| (instantiate (component ) (import )
)
| (instance *)

Could we rename the import nodes to with? Or modulearg/componentarg, or so? (import ...) has a different meaning in a different context. Parsers can disambiguate it, but it's confusing for humans that don't already know their way around.

For example:

instanceexpr ::= (instantiate (module <moduleidx>) (with <name> <modulearg>)*)
               | (instantiate (component <componentidx>) (with <name> <componentarg>)*)
               | (instance <export>*)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions