Want to Unlock Performance and Clarity? Use Strong Types
ekxide.io
ekxide.io
It's an idea that has existed for a long time in languages geared toward safety-critical systems.
E.g. Derived Types in Ada: https://fsharpforfunandprofit.com/posts/designing-with-types...
It is sometimes used in Ocaml or F# for domain-specific types: https://fsharpforfunandprofit.com/posts/discriminated-unions...
[1] https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...