-
Notifications
You must be signed in to change notification settings - Fork 267
Description
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.)
Line 70 in 166b59e
| ``` cpp title="Lists, using optional trailing commas just because we can" hl_lines="1 4 6 7" |
Should be construction:
Line 202 in 6dbd1ba
| // conversion from string |
Print should be: // "value is [Jim] [(unknown)]"
Same for next line.
Line 232 in 6dbd1ba
| x.print(); // "value is [] []" - moved from |
The override method is missing its implementation.
Line 95 in 6dbd1ba
| 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?
cppfront/docs/cpp2/expressions.md
Line 176 in d3ad31a
| An `inspect expr -> Type` expression allows pattern matching using `is`. |