Skip to content

Document bool type in reference #6657

Closed

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.

Activity

  1. added
    Component: Documentation
    feature request
    on Aug 26, 2017
  2. self-assigned this
    on Dec 27, 2017
  3. added
    in progress
    on Dec 27, 2017
  4. kengdahl commented on Jan 2, 2018

    @kengdahl
    Collaborator

    I will happily implement this as soon as there is a response from someone from Responsible (like @cmaglie) on the subject in #4673.

  5. per1234 commented on Jan 2, 2018

    @per1234
    CollaboratorAuthor

    Now that the reference-en repository is functional I had planned to submit a pull request to add the requested bool reference page, and also propagate that page out to the reference translation repositories after it was merged. However, it would be nice to get a statement on whether this move to encourage bool over boolean has official approval since otherwise it's unsure if the proposal will actually be able to move forward.

    I still maintain my commitment to doing as much of the footwork as is in my power for this project:

    • Submit pull requests for IDE bundled and official library examples that use boolean.
    • Submit pull requests for any reference pages that use boolean
    • Submit issue reports requesting changes to any documentation using boolean that can't be altered via pull requests. I suspect there will not be many required.
  6. kengdahl commented on Jan 2, 2018

    @kengdahl
    Collaborator

    I have assigned @cmaglie to this issue besides, just to get a go-ahead.

  7. cmaglie commented on Jan 5, 2018

    @cmaglie
    Member

    @per1234 let's go with your plan.

    Let's wait about setting the deprecated flag, will discuss that in #4673
    It's ok to change the examples from boolean to bool instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Component: Documentationfeature requestin progress

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions