이게 최선이었냐?
필드 접근도 안댐.
The Go compiler does not support accessing a struct field x.f where x is of type parameter type even if all types in the type parameter's type set have a field f.
이게 최선이었냐?
필드 접근도 안댐.
The Go compiler does not support accessing a struct field x.f where x is of type parameter type even if all types in the type parameter's type set have a field f.
map 앞에 물결표는 어떤 의미임?
M extends map비슷한 의미
보통 not 의미로 많이써서 한번에 안와닿는다...
alias한 타입도 받아들인다는 의미 e.g. type set map[int]struct{}
대충 [M ~map[K]V, K comparable, V any] , K implements comparable, V any> 이정도 되는듯
내 귀엽던 고퍼 어디감 - dc App
템플릿 파라미터를 [] 안에 넣는게 꼭 스칼라 같네
하위호환 안깨려고 하다보니 초기 설계철학인 Simplicity를 해치네. 만들땐 public keyword도 아깝다 이랬는데 이젠 ㅋㅋ...
generic 추가되면서 추가된 keyword 1개도 없음ㅋㅋ
꼭 키워드만이 아니라 의미론적으로 verbose해진 거 같음