CoRecursive: Coding Stories cover image

Tech Talk: Domain Driven Design meets Functional Programming

CoRecursive: Coding Stories

00:00

Using a Smart Constructor to Enforce Constraints

The idea of smart constructor is to act as a layer on top of the basic constructor. The phantom type makes that impossible, right? You're incoding that that f statement actually into the type system. It's used from i it was first used by eron mensky in a blog posts on phantom tipesocamea. Make illegal state unrepresentable. This phrase was first usedby used by rnmensky, eranmenskyfo genstrit and er, i think i acknowledged it also,  it's not my terminology.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app