iOS/iOS SeSAC 2기 TIL

iOS swift 타입 어노테이션 vs. 타입추론

Developer-Michelle 2022. 8. 3. 10:01

iOS swift 타입 어노테이션 vs. 타입추론 -> 누가 더 빠를까? 

=> 타입 추론

(근데 사실 속도 차이가 많이 나지는 않음)

 

아래 링크 참조

 

https://forums.swift.org/t/regarding-swift-type-inference-compile-time-performance/49748

 

Regarding Swift type inference compile-time performance

Hey all! This came up during a discussion today and I honestly wasn't sure if my assumptions were correct so looking for some clarity here! 🤞 What are the compile-time performance differences between the four declarations below? (I have added how I thin

forums.swift.org