News for hackers. Stuff that matters.
Re:The type system is a programmer's best friend by masklinn on Saturday November 05, 2022 @09:31AM (#33481285)
> I can't imagine having a type for a persons name that holds checks anything but perhaps a strings length, certainly not a list of all possible names.

As always, that is very domain-specific: there are lots of countries with naming laws, some of which do have lists of legal names.

Re:The type system is a programmer's best friend by blep_ on Saturday November 05, 2022 @01:50PM (#33483791)
Legitimate question: what do they do about immigration into those countries from countries without such laws?
Re:The type system is a programmer's best friend by masklinn on Saturday November 05, 2022 @02:45PM (#33484368)
Likely nothing: usually they’re laws which applies to parents / birth certificates.

I guess it’s possible that an immigrant trying to get naturalised would have to adopt a “legal” name for the country, but I’m not aware of any country where that’s a rule, aside from the Zairianisation movement of Mobutu.