Using Swift’s Types as Domain-Specific Languages

How to use Swift’s Types to create modules — Datatypes, UseCases, Features — that will be controlled through a vocabulary defined by their Domain Specific Languages (DSL)

Manuel Meyer
Better Programming
Published in
13 min readMay 2, 2023

--

Photo by Christopher Gower on Unsplash

As these vocabularies are finite sets, this kind of coding has proven to enable the coding of even…

--

--

Freelance Software Developer and Code Strategist, currently working on a book about the Declarative Domain Paradigm. Want to publish me? Get in contact!