Skip to content

Associated Type 이란 #58

@chaneeii

Description

@chaneeii

Associated Type

프로토콜을 정의할 때, 몇몇을 associated type으로 선언하면 매우 유용할 때가 있다.
associated type은 프로토콜의 일부로 사용되는 타입을 위한 placeholder 역할을 한다.
associated type은 정의하는 프로토콜이 채택되기 전까지 실제 타입이 명시되지 않는다. Associated type은 associatedtype 키워드를 사용해서 정의한다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions