Is metaprogramming just functional programming?
summary
Compares concrete examples: deriving a JSON encoder by mapping and folding over fields versus NeoForge’s static anonymous‑class and bytecode emission, shows Scala 3 quotes and the surprising inline warnings from scalac, demonstrates treating traversals as instruction lists with Cursor.replay, builds a view DSL that exposes a size‑hint problem because flatMap prevents compile‑time introspection, and even implements a type‑level Turing machine to show where “compile time” actually runs.
AI-written summary · about
