From 610878aa9da973bfcf16cd810a0ba8ad86f20e79 Mon Sep 17 00:00:00 2001 From: Soares Chen Date: Mon, 21 Sep 2026 03:07:58 +0000 Subject: [PATCH] Tell readers which chapters of this book are still accurate The introduction promised "a completed version of this book" and asked readers to come back later. That promise is sixteen months old and will not be kept: the chapters left unwritten have since been written on the project website instead. Replaces it with what is true. The Terminology and Core Concepts sections through Provider Traits explain the ideas in ordinary Rust traits and implementations, do not depend on a particular release, and remain accurate. The chapters after those show CGP's macros and wiring and predate several changes to that syntax, so they are worth reading for the ideas rather than the code. Also fixes a duplicated sentence fragment left in Who This Book Is For, and points the opening link at the apex domain rather than the www host that redirects to it. Co-Authored-By: Claude Opus 5 --- content/introduction.md | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/content/introduction.md b/content/introduction.md index 43e9af8..2b543be 100644 --- a/content/introduction.md +++ b/content/introduction.md @@ -6,7 +6,7 @@ to be implemented and composed in a modular, generic, and type-safe way. ## What is Context-Generic Programming -A high level overview of CGP is available on the [project website](https://www.contextgeneric.dev/). +A high level overview of CGP is available on the [project website](https://contextgeneric.dev/). This section contains a summarized version of the overview. At its core, CGP makes use of Rust's trait system to build generic @@ -40,10 +40,23 @@ make that learning process more approachable. Thoughout this book, we will slowly understand how CGP works, and learn about useful design patterns that can be used in any programming situation. -## Work In Progress +## The State of This Book -This book is currently a work in progress. A majority of the chapter is yet to be written. -Please come back later to check out a completed version of this book. +This book was last revised for CGP v0.4.0, and the library has moved on since. +What that means for you depends on which chapter you are reading. + +The _Terminology_ and _Core Concepts_ sections, up to and including _Provider Traits_, +explain the ideas using ordinary Rust traits and implementations. +They do not depend on a particular CGP release, and they remain accurate. + +The chapters after those show CGP's macros and its wiring, and they predate several changes +to that syntax. Read them for the ideas rather than for the code, and check anything you intend +to write against the [documentation on the project website](https://contextgeneric.dev/docs/), +which tracks the current release. + +The entries listed in the table of contents without a link were never written, and most of what +they planned has since been written on the website instead. That is the place to look for the +current explanations and reference material. ## Who This Book Is For @@ -59,8 +72,7 @@ On the other hand, this book is primarily intended for those who wish to gain a It will also be a valuable resource for users encountering CGP-related error messages, providing the knowledge needed to understand the root cause and fix issues more effectively. -For beginners looking for a faster start, a separate book is planned for the future, which will provide more beginner-friendly tutorials focused on quickly getting started with CGP. -book will be written in the future, to provide beginner-friendly tutorials for getting started with CGP more quickly. +For beginners looking for a faster start, the [tutorials on the project website](https://contextgeneric.dev/docs/tutorials/hello) are the shorter path. ## Chapter Outlines