Hacker News new | ask | show | jobs
by fph 311 days ago
You define an Interval type, and check the constraint in its constructor.