3 ms·
Interesting naming. Strongly typed languages (especially in the ML family) have best practices that include using types instead of strings as function parameter
by StreamBright 5y ago
Interesting naming. Strongly typed languages (especially in the ML family) have best practices that include using types instead of strings as function parameters. Email type itself is enough to skip validation in each function accepting that particular type.
I think this is great first step using functional languages but you can go much much deeper than that.
https://www.slideshare.net/ScottWlaschin/the-power-of-composition-ndc-oslo-2020 https://www.slideshare.net/ScottWlaschin/the-power-of-compos...