TeX's \newcommand macro system eliminates repetitive formatting by letting you define reusable, parameterized commands. This blog shows how to create semantic macros for vectors, operators, and expectation values, avoid naming collisions, and verify the output with a minimal compile test.
An architecture note on using Haxe compile-time macros as the smallest design for rules that must never be bypassed at runtime — covering trust boundaries, operational checks, and when to replace macros with external generators.
Functions can't delay evaluation of their arguments — macros can. A practical look at Racket's define-syntax-rule, hygiene, and the macro stepper, with worked examples and honest trade-offs.
Crystal’s pattern matching lets you replace nested if/else blocks with concise, type‑safe branches. Learn the syntax, see a step‑by‑step example, and weigh performance trade‑offs before adding it to your codebase.
Learn how C11’s _Generic keyword lets you write a single type‑generic macro—illustrated with an abs() example—and understand its trade‑offs and verification steps.
Discover how Haxe macros let you eliminate boilerplate code—like getters, setters, and serializers—without adding runtime overhead. Learn a concrete example, trade‑offs, and how to get started.