-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Describe the feature
In the What is the Arduino?
lesson and the Basic Programming
lesson, it mentions that the instructions are written in a variant of the C++ programming language. This is incorrect, and should be changed wherever mentioned to written in C++
instead.
It should be implemented because
Arduino does not introduce a new variant of C++. It uses the same C++ language and toolchain, but with additional preprocessing and a set of platform-specific libraries.
What makes Arduino look different is not a change in the language itself, but the provided environment. The Arduino IDE hides the main() function, adds some boilerplate behind the scenes, and links in libraries suited to the microcontroller platform.
This is no different from any other C++ environment where you link platform-specific code. On Windows, you rely on the Win32 API or DirectX. On Linux, you might use POSIX calls. On Arduino, you use libraries like Wire or Serial that wrap low-level hardware access, some of which are written in C or assembly.
Therefore, programming Arduino is not using a C++ variant. It is plain C++ with platform constraints and helper libraries tailored to embedded systems.
Additional context
Suggested by J-M-L (Jackson)
on the Arduino Forums.
Would you like to work on this issue?
None