<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Biococoa-dev] Re: a new design to please
everybody (a</title></head><body>
<blockquote type="cite" cite>Just to clarify one thing regarding the
section below.  I wasn't suggesting</blockquote>
<blockquote type="cite" cite>our methods themselves were going to
crash the app, but rather they make the</blockquote>
<blockquote type="cite" cite>following situation more
likely:</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>bob = [genericSequence
complement];</blockquote>
<blockquote type="cite" cite>bobArray = [bob
sequenceArray];</blockquote>
<blockquote type="cite" cite>id aSymbol = [bobArray objectAtIndex:
5];  <- app crashes here</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>Part of it may be just how I do things: 
when designing my own objects, I</blockquote>
<blockquote type="cite" cite>put a lot of error checking in to the
initialization and transformation</blockquote>
<blockquote type="cite" cite>routines, and then assume for all other
purposes that I have an object with</blockquote>
<blockquote type="cite" cite>valid internals.  Faced with using a
generic sequence, I wouldn't be able to</blockquote>
<blockquote type="cite" cite>do that, and I'd be checking its length
all the time to make sure it's</blockquote>
<blockquote type="cite" cite>valid. </blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>Anyway, I do agree that your plan for
moving forward's a good one, and sorry</blockquote>
<blockquote type="cite" cite>you've picked up a cold as
well.</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>Cheers,  JT</blockquote>
<blockquote type="cite" cite> </blockquote>
<div><br></div>
<div>I agree empty NSArrays can be very annoying (maybe even more than
nil, sometimes!), and we should avoid them. For instance, returning
self instead of an empty sequence, or an array with only one sequence
as a result of a digest.</div>
<div><br></div>
<div>Charles</div>
<div><br></div>
<div><tt><br></tt></div>
<div>Charles Parnot</div>
<div>charles.parnot@stanford.edu</div>
<div><br></div>
<div>Help science go fast forward:</div>
<div>http://cmgm.stanford.edu/~cparnot/xgrid-stanford/</div>
<div><br></div>
<div>Room  B157 in Beckman Center</div>
<div>279, Campus Drive</div>
<div>Stanford University</div>
<div>Stanford, CA 94305 (USA)</div>
<div><br></div>
<div>Tel +1 650 725 7754</div>
<div>Fax +1 650 725 8021</div>
<div><br></div>
<div><br></div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div>Charles Parnot<br>
charles.parnot@stanford.edu<br>
<br>
Help science go fast forward:<br>
http://cmgm.stanford.edu/~cparnot/xgrid-stanford/<br>
<br>
Room  B157 in Beckman Center<br>
279, Campus Drive<br>
Stanford University<br>
Stanford, CA 94305 (USA)<br>
<br>
Tel +1 650 725 7754<br>
Fax +1 650 725 8021</div>
</body>
</html>