wrap (1) 썸네일형 리스트형 [Swift] types 개인적으로 공부하기 위해 번역해서 남겨둔다. Swift에는 2가지 type이 있다.named types이름이 정해진 type이다.class, struct, enumeration, protocol 를 포함한다.사용자가 만든 임의의 class이름을 Person 이라고 하면 Person또한 named type이며 user-defined named type이라 한다.standard library에는 array, dictionary 등 많은 named type들이 제공된다.data type은 number, character, string 등의 named type 을 말한다. Swift standard library에 structur로 구현되어 있다. 필요에 따라서 원하는 동작을 extend할 수 있다. (objc.. 이전 1 다음