Skip to content

Commit a9b419e

Browse files
authored
Add chapter for Debugging Techniques (#11)
* Draft chapter for Check Traits * Add more writing * Rename chapter to Debugging Techniques
1 parent aaecc93 commit a9b419e

File tree

4 files changed

+522
-7
lines changed

4 files changed

+522
-7
lines changed

content/SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- [Linking Consumers with Providers](consumer-provider-link.md)
1717
- [Provider Delegation](provider-delegation.md)
1818
- [Component Macros](component-macros.md)
19-
- [Check Traits](check-traits.md)
19+
- [Debugging Techniques](debugging-techniques.md)
2020

2121
# Design Patterns
2222

content/check-traits.md

-1
This file was deleted.

content/component-macros.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ where
211211
Ok(serde_json::to_string(context)?)
212212
}
213213
}
214-
#
214+
215215
pub struct ParseFromJsonString;
216216

217217
impl<Context> StringParser<Context> for ParseFromJsonString
@@ -272,8 +272,8 @@ of context-generic programming in Rust. Without it, programming with CGP would
272272
become too verbose and full of boilerplate code.
273273

274274
On the other hand, the use of `cgp` macros makes CGP code look much more like
275-
programming in a _domain-specific language_ (DSL) than in regular Rust code.
276-
In fact, one can argue that CGP acts as a _language extension_ to the base
275+
programming in a _domain-specific language_ (DSL) than in regular Rust.
276+
In fact, one could argue that CGP acts as a _language extension_ to the base
277277
language Rust, and almost turn into its own programming language.
278278

279279
In a way, implementing CGP in Rust is slightly similar to implementing
@@ -284,8 +284,8 @@ a core language feature in future programming languages.
284284
Perhaps one day, there might be an equivalent of C++ to replace CGP-on-Rust.
285285
Or perhaps more ideally, the core constructs of CGP would one day directly
286286
supported as a core language feature in Rust.
287-
But until that happens, the `cgp` crate serves as a preview of how
288-
context-generic programming can be done in Rust, and how it can help
287+
But until that happens, the `cgp` crate serves as an experimental ground on
288+
how context-generic programming can be done in Rust, and how it can help
289289
build better Rust applications.
290290

291291
In the chapters that follow, we will make heavy use of `cgp` and its

0 commit comments

Comments
 (0)