[RFC] Solid and use of namespaces
glaurent at telegraph-road.org
Mon May 22 13:27:31 BST 2006
Marcos Mayorga wrote:
> I would choose using namespaces to nest the classes.
> Clearer code, best designed, improved readability and extensibility, and
> over all, increases the level of abstraction, which is a key factor for
Namespaces are a purely lexical feature, I fail to see how using them
would "increase the level of abstraction".
> ie: I have nothing to do with the class PowerBattery related to 'power'
> if you choo to use power::battery, a can later do a power::solar_panel,
> and use functions insife power (like power::have_i_supply_for_one_hour())
> which abstract me on the specific power supply the instance is using.
Seems to me you're confusing namespaces and polymorphism.
More information about the kde-core-devel