Skip to content

u3 specification underspecifies loobeans #752

Closed
@MostAwesomeDude

Description

@MostAwesomeDude

Hi!

While reading the u3 documentation on integer types, I noticed that loobeans are specified using a C numeric type:

typedef uint8_t c3_o;   // loobean

And the docs explain that this is to mimic Nock: "A loobean is a Nock boolean - Nock, for mysterious reasons, uses 0 as true (always say 'yes') and 1 as false (always say 'no')."

However, C numeric types always can hold many more values than just 0 and 1. For example, 2 is a valid value for the c3_o type. In that case, would 2 be considered true, or considered false? Is there a de facto standard already?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions