Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associated Type 이란 #58

Open
chaneeii opened this issue Nov 16, 2022 · 0 comments
Open

Associated Type 이란 #58

chaneeii opened this issue Nov 16, 2022 · 0 comments

Comments

@chaneeii
Copy link
Owner

Associated Type

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant