3 ms·
Also a good reason for defining and using the most specific subtypes possible. In some domains, "this arg is a string" is useless for validation or documentatio
by erik_seaberg 8y ago
Also a good reason for defining and using the most specific subtypes possible. In some domains, "this arg is a string" is useless for validation or documentation because everything is a string. Is it really a URL? a UUID? a serialized timestamp? a property name?
- woolvalley 8y agoThat's called something being stringly typed, and it's a code smell. You make URL classes, UUID classes, timestamp classes, enums, etc to replace the strings.