3 ms·
If you have higher-kinded types and a working record system you can do it by transforming your existing types. Even in more limited languages you might be able
by lmm 6y ago
If you have higher-kinded types and a working record system you can do it by transforming your existing types. Even in more limited languages you might be able to make it manageable with phantom types, e.g. Java's "type-safe builder pattern".