Oct. 16, 2012
5:46 p.m.
i had a problem earlier, thinking that if i did a detect: on an ordered collection, and the item was not found, i would get back nil. it turns out that it throws an error.. to get this to work, you use: detect:ifNone: my only question is... why is this so? what is the motivation behind throwing an error rather than returning nil? i guess i would like to understand the 'smalltalkiness' about this, just in case i run into something like this in the future.. thanks! -- ---- peace, sergio photographer, journalist, visionary http://www.ThoseOptimizeGuys.com http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101