Making Illegal States Unrepresentable
corrode.dev
Making Illegal States Unrepresentable
1–5 of 5 posts
Re: Making Illegal States Unrepresentable
#2It is a good idea in SQL
Re: Making Illegal States Unrepresentable
#3The maximum age constraint on the birthdate is problematic, since it becomes more restrictive over time. So if you store a user and their birthdate, you won't be able to load them again if they crossed the threshold in the mean time.
I'd just pick some reasonable cutoff (say 1907) and keep it at that value forever.
Re: Making Illegal States Unrepresentable
#4Today our computers have issues because time overflows. Tomorrow, advanced medical technology extending human life may be available, but will constraints in software will force people to be legally reborn into new identities?
Re: Making Illegal States Unrepresentable
#51983 called. Ada would like a word.