peterw;188644 Wrote: 
> Would it make more sense to use hash objects to pass information and
> return codes, as illustrated below? Using hashes and named input/output
> data would make the API more easily extended, and would make the code
> more readable (if less compact).In my opinion it doesn't really matter for 
> the plugin that implements
the condition function, but if you like to be able to extend the API in
SaverSwitcher in the future I would recommend that you use hashes.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library and RandomPlayList plugins'
(http://wiki.erland.homeip.net/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=33598

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to