URL details: nickager.com/blog/2016/04/20/avoiding-any-arrays

URL title: Avoiding Swift’s [Any] by using functional patterns | Nick Ager’s blog
URL description: In my previous post: “Unexpected behaviour with Swift’s [Any]”, I declared a nested array of integers as: let a : [Any] = [1,2,[3],[4,[5,6]],[[7]], 8] Using Any feels like a code smell; by using Any I’m effectively saying, “ignore all the type-checking the compiler performs, instead I’ll rely on my own knowledge of the types”. Experience shows I am not as knowledgable as the compiler, especially after some time has elapsed and I’m trying to add a new feature…
URL last crawled: 2024-07-23
URL speed: 0.083 MB/s, downloaded in 0.200 seconds

open external url

We found no external links pointing to this url.