Skip to content

Document bool type in reference #6657

Closed
@per1234

Description

@per1234

As discussed in #4673, it is desirable to encourage the use of the standard bool type rather than Arduino's boolean alias. The first step is to document the bool type in the Arduino reference.

  1. Create a bool reference page. Please don't capitalize bool in the URL, that was a terrible idea.
  2. Copy the documentation from the boolean reference page to the bool reference page, changing all references to the boolean type to bool.
  3. Replace the documentation in the boolean reference page with this:

boolean is a non-standard type alias for bool defined by Arduino. It's recommended to instead use the standard type bool, which is identical.

Once this has been done I will submit pull requests to remove the use of boolean from all official Arduino code and request updates of any other documentation that uses it.

Metadata

Metadata

Labels

Component: DocumentationRelated to Arduino's documentation contentfeature requestA request to make an enhancement (not a bug fix)in progressWork on this item is in progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions