Skip to content

Docs rewrite; jumps without ; before }; fmt syntax errors; buffer reads - #85

Merged
kryptamine merged 2 commits into
masterfrom
docs-and-fixes
Nov 16, 2026
Merged

kryptamine merged 2 commits into
masterfrom
docs-and-fixes

Conversation

@kryptamine

Copy link
Copy Markdown
Owner

Language and tools

  • return, break, continue right before } need no ;: if n < 0 { return -1 }, matching match arms.
  • rune fmt parses first and reports syntax errors (exit 65) instead of printing broken output.
  • The parser no longer reports the same error twice when nested blocks fail at one spot.
  • Buffers get text(), indexOf(), hex(), base64(); bytes and buffers share one implementation.

Docs

  • Every chapter rewritten: why before how, realistic examples, idiomatic tail expressions, errors in their own blocks.
  • All 425 examples run and their // outputs checked; network, multi-file and main-args examples checked by hand.
  • Fixed stale content: functions in objects, int() message, disasm output, buffer claims, break in if.
  • Added summary tables to stdlib pages, len() docs, pattern and exit-code tables.
  • Install snippets point at v0.3.0.

@kryptamine
kryptamine merged commit f6098de into master Nov 16, 2026
3 checks passed
@kryptamine
kryptamine deleted the docs-and-fixes branch November 16, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant