<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Georgia">I prefer the first - it gets one case out of
the way quickly. <br>
<br>
Cheers,<br>
Bob<br>
<br>
</font>
<div class="moz-cite-prefix">On 10/23/13 10:12 AM, Louis LaBrunda
wrote:<br>
</div>
<blockquote cite="mid:h7mf6958t7tijtemtqufnitellkumr774d@4ax.com"
type="cite">
<pre wrap="">Hi,
I'm about to write a method where I need to test whether to do something or
just get out. What is the best practices way to do this? For example:
(a = b) ifTrue: [^nil].
*The code that does the work*
or:
(a = b) ifFalse: [
*The code that does the work*
].
I think the second is better style but I have used both. Generally using
the first when *The code that does the work* is long and the second when it
is short.
Is there any speed difference between them? I doubt it but I thought I
would ask anyway.
Lou
-----------------------------------------------------------
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
<a class="moz-txt-link-freetext" href="mailto:Lou@Keystone-Software.com">mailto:Lou@Keystone-Software.com</a> <a class="moz-txt-link-freetext" href="http://www.Keystone-Software.com">http://www.Keystone-Software.com</a>
</pre>
</blockquote>
<br>
</body>
</html>