As the title says, what\'s the difference between Array vs NSArray vs [AnyObject]?
Also, what is most recommended way of approaching this. What i mean recommended is
Adding to @Krzak's excellent answer, this is why
print(NSArray().object(at: 1)) // Triggers an UnmanagedException
2018-11-09 11:38:08.798088-0600 AppName[38786:10497909] * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArray0 objectAtIndex:]: index 1 beyond bounds for empty NSArray'
and
print(Array()[1]) // Halts with "Thread 1: Fatal error: Index out of range"
This different handling of the error helped me understanding the difference..... e