On 22/10/15 12:39, Matthew Astley wrote:
Cool! The Bus::I2C:: namespace seems safe. Short, unambiguous, unlikely to have a legitimate claim from software.

I would personally keep Device, most of the hardware-related stuff on CPAN (not much, but still) is already in that namespace.

Bus, by itself, is far from unambiguous to me (https://en.wikipedia.org/wiki/Bus). On the other hand, I think I2C and SPI are familiar enough to people working - or playing - with electronics.

So I would go for:

Device::I2C
Device::SPI

Which are hardware-abstract, and subclassed if/when needed (Device::I2C::FT232H, etc.).

Just my personal opinion.


cheers,
Aldo

Reply via email to