From the D Blog: The Amazing Compile-Time Metaprogramming State Machine

Adam D. Ruppe destructionator at gmail.com
Fri May 8 12:05:39 UTC 2026


On Friday, 8 May 2026 at 05:05:07 UTC, Mike Parker wrote:
> A new blog post from Jared Hanson is live. In this one, he 
> shows how to use D's compile-time features to create a 
> type-safe, compile-time implementation of the Builder pattern.

Reminds me of my own post from six months ago, which uses similar 
techniques to build compile time data which is then validated at 
run time, when the program starts up, so you're not actually 
waiting until run time in the traditional sense (startup happens 
a fraction of a second after compile time) and enables checking 
against an outside source like a web api or database:

https://dpldocs.info/this-week-in-arsd/Blog.Posted_2025_11_03.html


More information about the Digitalmars-d-announce mailing list