[swift-evolution] modifying Array<Element> to return Element! when subscripted

Charlie Monroe charlie at charliemonroe.net
Thu Jun 23 11:13:15 CDT 2016

There is currently an ongoing discussion about this here:


> On Jun 23, 2016, at 6:07 PM, Pranjal Satija via swift-evolution <swift-evolution at swift.org> wrote:
> Would modifying array subscripts to return implicitly unwrapped optionals be a bad idea? This way, if an array is indexed out of bounds, the returned value will be nil, instead of a fatal error. This would allow developers to check for nil before fatal errors are created.
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

More information about the swift-evolution mailing list