Re: [swift-evolution] Arrays Returning Optionals instead of Index Out of Bounds

2016-06-23 Thread Andreas Ley via swift-evolution
> "..*most* people don’t expect.." could you prove this please? I should have written “most people I know” or “the people I work with". > Especially if they know a little of C language or other language that don't > allow to use wrong indexes for arrays. Maybe that’s the point: They don’t. And

Re: [swift-evolution] Arrays Returning Optionals instead of Index Out of Bounds

2016-06-23 Thread Andreas Ley via swift-evolution
> Please find the related proposal which was formed after the long discussion > in the list: > > https://github.com/luish/swift-evolution/blob/proposal-lenient-collection-subscripts/proposals/-more-lenient-collections-subscripts.md > >

Re: [swift-evolution] Arrays Returning Optionals instead of Index Out of Bounds

2016-06-23 Thread Andreas Ley via swift-evolution
(First time using a mailing list; I hope this message ends up in the correct thread) This is a topic that comes up regularly on the Swift evolution mailing list and off it. After reading through all the respective threads again, there seem to be the following two camps: Arguments made for