> you still can crash an app doing myArray[1]
the first thing i do when starting a new project: extension Array {
subscript(safe: Int) -> Element? { ... }
}
there was talk in the swift forms about adding that
as standard that but it seems to have died off...[0] https://forums.swift.org/t/draft-adding-safe-indexing-to-arr...