[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Change #1 Considered Harmful

From: Jim Blandy <jimb_at_zwingli.cygnus.com>
Date: 2001-02-05 23:29:09 CET

I guess I think it's weird to have an interface that supports the
feature of "I decided not to use this interface." Usually, if you're
not sure you want to perform an operation yet, you just don't perform
it.

You'd better document the fact that an editor constructor should never
actually *do* anything, and that all actual work must take place after
the begin_edit call.

Perhaps malloc should be changed to return a function/baton you have
to invoke if you decide you actually want the memory. That way, you
can allocate all the memory you'll need at the beginning of the
program, and then only actually really get it when you need it.

*shrug*
Received on Sat Oct 21 14:36:21 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.