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