In the next version of pros it will be c++ out of the box. Thus what changes will we see to how the pros api is implemented. will it remain just a list of function or will it be placed into a namespace?
int ex = pros::digitalRead(1);
int ex = digitalRead(1);
I don’t know how viable this even is, and there are PROS and cons to each, however I would like to know how my current code will be affected and if I need to change things.
Thanks in advance
I’d suggest creating a set of algorithms for common operations, as the major differences will be in implementation. For example:
set left motors to joystick input
set right motors to joystick input
(yes, it’s a pretty naïve function, but I hope it illustrates my point)
PROS 3.0 is still under development, and very few things are finalized. My intention in bringing up the idea that code will likely have to be rewritten was to give everyone some fair, advance warning that there will be differences. We won’t reveal much more before we are ready. I thank you all for your understanding.