[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-commits
Subject:    [haiku-commits] Re: haiku: hrev45422 - src/apps/deskbar
From:       John Scipione <jscipione () gmail ! com>
Date:       2013-03-29 17:45:45
Message-ID: CAOoW63-Jpr4_NAj=WFQ-tB-pCDcQS78vdEYWusXLjBP-_T3mMw () mail ! gmail ! com
[Download RAW message or body]

On Fri, Mar 29, 2013 at 1:37 PM, Urias McCullough <umccullough@gmail.com>wrote:

> On Fri, Mar 29, 2013 at 10:32 AM, John Scipione <jscipione@gmail.com>
> wrote:
> >> How about an _Init() method called by all constructors instead?
> >>
> > That would be overkill for just a for loop setting the pointers to NULL.
>
> Overkill how? Is duplicating the code somehow better/simpler?
>

IMHO readability would be worsened more by introduction an _Init() function
than you'd gain by avoiding duplicating the code snippet.

[Attachment #3 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 29, 2013 \
at 1:37 PM, Urias McCullough <span dir="ltr">&lt;<a \
href="mailto:umccullough@gmail.com" \
target="_blank">umccullough@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="im">On Fri, Mar 29, 2013 at 10:32 AM, John \
Scipione &lt;<a href="mailto:jscipione@gmail.com">jscipione@gmail.com</a>&gt; \
wrote:<br>

&gt;&gt; How about an _Init() method called by all constructors instead?<br>
&gt;&gt;<br>
&gt; That would be overkill for just a for loop setting the pointers to NULL.<br>
<br>
</div>Overkill how? Is duplicating the code somehow \
better/simpler?<br></blockquote><div><br></div><div>IMHO readability would be \
worsened more by introduction an _Init() function than you&#39;d gain by avoiding \
duplicating the code snippet.</div> </div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic