← Home ← Back to /g/

Thread 105888238

4 posts 2 images /g/
Anonymous No.105888238 [Report] >>105889755
>static ENC_SHARE: Mutex<RefCell<Option<RotaryEncoder<AngularVelocityMode, Pin<Gpio4, FunctionSioInput, PullUp>, Pin<Gpio5, FunctionSioInput, PullUp>>>>> = Mutex::new(RefCell::new(None));

why
Anonymous No.105889389 [Report] >>105889928
>bro just use sepples bro, it will make your coding easier o algo because it's object oriented
>sepples be like ITaskListInterfaceProviderClassFactory::CreateClassFactoryFactory(IVectorView2<int, unsigned long long *> *TaskListBuilderFactoryVectorView, std::pair(int, void**) ActivationContextMethodBroker, bool IsActiveTask)
Anonymous No.105889755 [Report]
>>105888238 (OP)
>type SomeShittyRotaryEncoderImpl = RotaryEncoder<AngularVelocityMode, Pin<Gpio4, FunctionSioInput, PullUp>, Pin<Gpio5, FunctionSioInput, PullUp>>

>static ENC_SHARE: Mutex<RefCell<Option<SomeShittyRotaryEncoderImpl>>> = Mutex::new(RefCell::new(None));

Wow, so hard.
Anonymous No.105889928 [Report]
>>105889389
Still more readable and I don't need to cut off my dick. I'll take this over OP.