<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all, <div class=""><br class=""></div><div class="">In swift-corelibs-foundation/Foundation/NSArray.swift on line 347 there is a comment that says <span style="color: rgb(0, 132, 0); font-family: Menlo; font-size: 11px;" class="">TODO: Bounds checking</span> . Since that just call <span style="font-family: Menlo; font-size: 11px;" class="">objectAtIndex</span>, I think the bounds checking should be done inside of <span style="font-family: Menlo; font-size: 11px;" class="">objectAtIndex</span>. My question, though, is what should be returned if the index is out of the array bounds? The methods don’t throw, so I don’t think we can raise an exception. And I don’t think we can return nil because the method is supposed to return a non-optional AnyObject. What about using assert or precondition?</div><div class=""><br class=""></div><div class="">I’m super excited to be a part of this community!</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Daniel Strokis</div></body></html>