Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ConditionalTranslationDesign.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
## Structured VS. Unstructured
Conditional compilation is a mechanism to modify the source code based on parameters passed to the compiler. We distinguish two kinds:

* **unstructured**: arbitrary code sections can be injected or conditionally included. This is what the C preprocessor and macros do, and a lesser version of that is proposed in [`simple templating`](SimpleTemplating.md).
* **unstructured**: arbitrary code sections can be injected or conditionally included. This is what the C preprocessor and macros do.
* **structured**: only structural elements of the syntax can be manipulated, e.g. a whole declaration, a member, etc. Rust uses this approach with the `#[cfg]` attribute.

We think that *structured* is the way to go. It leads to clearer and safer code, which is more important than implementation complexity in our eyes.
Expand Down
Loading