concrete icon indicating copy to clipboard operation
concrete copied to clipboard

Add some code examples

Open JulianGCalderon opened this issue 7 months ago • 5 comments
trafficstars

Adds some code examples to the Concrete book, regarding basic language features.

I've not added documentation on these topics:

  • Traits (not in main yet).
  • Modules (or standard library).
  • Attributes:
    • intrinsic.
    • lang_item.
  • Borrowing rules for references.
  • Union (low-level, is it worth to document?).

Also, our for implementation is pretty flexible (Go-like), allowing something like this:

for (; x <= 10; x = x + 1) {
    ...
}

I've not documented as I didn't know if we would keep it.

NOTE: Is there a way to preview the book before merging?

JulianGCalderon avatar Apr 07 '25 20:04 JulianGCalderon