Source
- URL: https://x.com/Walley_Alex1/status/1869875982645244406
- Author: Alex Walley (@Walley_Alex1)
- Posted: 2024-12-19 22:42:29
Branch
1/ @Walley_Alex1
@rfleury
I completely agree. I am interested in your thoughts on allowing these megastructure/product types to be used as part of a user API? One issue with product types: it is harder to see what a “valid” set of fields are. With a sum type, they are type checked
2/ @rfleury
@Walley_Alex1
The idea is more that there aren’t invalid subsets of fields. All possibilities are on the table. This is actually more useful for usage code, because the underlying mechanisms are more flexible.