<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 12, 2010, at 2:33 PM, Greg Ewing wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Masklinn wrote:<br><br><blockquote type="cite">Though I'm not sure it's a very good idea for lists. Semantically, lists<br></blockquote>> are to be iterated, not really to be indexed.<br><br>I don't think I agree that lists are meant primarily for<br>iteration. Indexing them is a perfectly legitimate and<br>useful thing to do.<br><br>However, I would agree that a list.get() operation with a<br>default seems to be a rather rare requirement. Usually<br>when you index a list, the index is generated by some<br>algorithm that guarantees it's within range.<br><br>I can't remember ever wanting a list.get() myself, and<br>if I ever did, I would be quite happy to write my own.<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><br></div><div>I concur. Put me down for a -1.</div><div><br></div><div>Also, I think this idea was discussed once or twice here</div><div>before and it got shot down then too. </div><div><br></div><div><br></div><div>Raymond</div></body></html>