The post explores using the Ghosts of Departed Proofs technique to model data relationships in C#, a continuation from a previous exploration using F#. It provides a detailed example, including 'size proofs' and their practical implementation in a rod-cutting problem, showcasing how the technique can enhance type safety and immutability in APIs.

10m read timeFrom blog.ploeh.dk
Post cover image
Table of contents
Size proofs #Issuing size proofs #Proof-based Cut API #Proof-based Solve API #Proof-based revenue API #Running client code #Preventing misalignment #Conclusion #
1 Comment

Sort: