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

ITEM 33. 타입 안전 이종 컨테이너를 고려하라 #60

Open
SGKIM94 opened this issue Apr 5, 2021 · 0 comments
Open

ITEM 33. 타입 안전 이종 컨테이너를 고려하라 #60

SGKIM94 opened this issue Apr 5, 2021 · 0 comments
Assignees
Labels
Assignment Something to submit

Comments

@SGKIM94
Copy link
Collaborator

SGKIM94 commented Apr 5, 2021

컨테이너 대신 키를 매개변수화한 다음, 컨테이너에 값을 넣거나 뺄 때 매개변수화한 키를 함께 제공하면 제네릭 타입 시스템이 값의 타입이 키와 같음을 보장해줍니다. 이러한 설계 방식을 타입 안전 이종 컨테이너 패턴(type safe heterogeneous container pattern) 이라고 합니다.

이러한 이종 컨테이너 패턴을 간단하게 정리하고, 여유가 있다면 간단히 구현해 봅시다.

@SGKIM94 SGKIM94 added the Assignment Something to submit label Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Assignment Something to submit
Projects
None yet
Development

No branches or pull requests

4 participants