On Mon, 25 Apr 2005 17:02:13 +0100 Dave wrote: DS> On Mon, 2005-04-25 at 16:41, Robert Story wrote: DS> > All you've done in the container version of table_data is internally DS> > provided the structure that the table container expects. I having nothing DS> > against that. All I'm suggesting is that the API be part of DS> > table_container instead of table_data2. Do a few wrapper function really DS> > warrant a whole new helper? DS> DS> Yes - if the visible functionality is significantly different. DS> DS> In terms of public API, the main difference between table_data DS> and table_container is in terms of how the indexing is handled.
Actually, the real difference is that table_container doesn't have an API at all. So I'm suggesting that the table_data2 API become the table_container API. There is no backwards compatibility implications. DS> I'd suggest it's less confusing if the two different approaches DS> are handled by two different helper. And of course, I suggest that a bunch of almost-the same little helpers is just as confusing as one big helper. Following the 'simpler smaller helper' paradigm, table_container should be 4 helpers: the core, and then 3 wrappers for each of the supported index methods. Heck, table_data2 should even be split, it has two different ways of handling indexes too. DS> Compare with scalar vs instance helpers. The scalar helper DS> is basically just a wrapper round the instance helper. DS> That works fine, IMO. Easy for you to say, you wrote them! Coincidentally, this came up on IRC the other day. Someone asked me the difference between the scalar and instance helpers, and my response was "I have no idea." Maybe you can enlighten me for future reference... -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders