Skip to content

[SUGGESTION] Documentation tidbits #1082

@MaxSagebaum

Description

@MaxSagebaum

Some small things, that I recognized while browsing the documentation:

Title is wrong: No Trailing commas are present. ( Title is not shown in github view.)

``` cpp title="Lists, using optional trailing commas just because we can" hl_lines="1 4 6 7"

Should be construction:

// conversion from string

Print should be: // "value is [Jim] [(unknown)]"
Same for next line.

x.print(); // "value is [] []" - moved from

The override method is missing its implementation.

print: (override this, msg: std::string);

An inspect expr -> Type expression allows pattern matching using is.
I think for the reader it is still unclear what is expected on the right side of =. Particularly, I think the definition is not complete. Should it not be: inspect expr -> Type { is condition = statement; ...} My question would be: Can statement also be a body with a return?

An `inspect expr -> Type` expression allows pattern matching using `is`.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions