Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The type system is a programmer's best friend. Parent comment
I assumed the point was old name wasn't tracked and should be.
> Having a type for "country of origin" would mean that the type gives you limits on what values it can hold
No one said your type has to be completely set in stone and contain every valid value in advance.
Have a trusted store of country name and valid until date. So defunct country can't be added.
There are no comments on this comment yet.
I assumed the point was old name wasn't tracked and should be.
> Having a type for "country of origin" would mean that the type gives you limits on what values it can hold
No one said your type has to be completely set in stone and contain every valid value in advance.
Have a trusted store of country name and valid until date. So defunct country can't be added.