Full threadfrabert·I once (tried?) to implement some form of refinement types using C++17 templates as my BSc thesis: https://github.com/frabert/bsc-thesisIt's more or less as horrific as you can imagine...View on HN