Hacker News new | ask | show | jobs
by itishappy 983 days ago
Right, but restricting the domain to just the list you're already enumerating makes things easier.
1 comments

Yep, so now your sort function isn't just a sort. It's a sort with a unit test at the beginning. This burden is placed on EVERY use.