Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail From: Kaz Kylheku Newsgroups: comp.programming Subject: Re: Two object oriented methods, which is better? Date: Thu, 18 Sep 2014 18:59:34 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 10 Message-ID: <20140918115849.501@kylheku.com> References: <20140918204616.7a953d26@maxa-pc> NNTP-Posting-Host: X+c6YNb3AaWMPA3YfA4opg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: slrn/pre1.0.0-18 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.programming:4795 On 2014-09-18, Melzzzzz wrote: > On Thu, 18 Sep 2014 21:40:19 +0300 > Victor Porton wrote: >> What is more object oriented? Which is better? > > First can do whatever with array, while second shows clear > intent. > I'll go with second since it is clearer what function does. It's probably also clear what modify_array does, if you have its definition.