[WebODF] Functions/Methods in a class

Philip Peitsch philip.peitsch at gmail.com
Mon Mar 24 13:59:25 CET 2014


On 24 March 2014 22:50, Aditya Bhatt <aditya at bhatts.org> wrote:

>
> I prefer to do this even if `doSomething` is never used internally in the
> class. This is because if and when it becomes necessary to use this
> function
> within the class, I do not need to change too many lines by switching from
> [2]  to [1].
>

I'm not terribly bothered either way. I'm slightly allergic to
future-proofing things, but following this pattern doesn't introduce too
many unnecessary lines.

-- 
Philip Peitsch
Mob: 0439 810 260
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://open.nlnet.nl/pipermail/webodf/attachments/20140324/650aea17/attachment.html>


More information about the WebODF mailing list