4 ms·
In C++ (or another language of your choice without strict linear types) how would you design a pin library to prevent someone from using a pin as both input and
by morelisp 3y ago
In C++ (or another language of your choice without strict linear types) how would you design a pin library to prevent someone from using a pin as both input and output enforced at compile time?
- codr7 3y agoAs long as it is static, that is, it doesn't change during execution; you would do it by declaring the pin as either or using the type system.