Skip to content

Do sub-protocol members create members on the parent protocol? #81

@LeaVerou

Description

@LeaVerou

Consider this:

protocol P {
	requires constructor implements protocol {
		requires foo;
	}
}

Where does the symbol foo generates live on? Does it generate a P.foo? There should be an easier way to access it than Protocol.describe(P).constructor.implements.foo

If you answered "it generates a P.foo", then how about this:

protocol P {
	requires foo;

	requires constructor implements protocol {
		requires foo;
	}
}

Are these the same P.foo?
In the previous design they did (static foo and foo both used the same symbol).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Agenda+To be discussed in next breakout. Remove when actually discussed and resolved.needs consensus

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions