HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by matthuggins | Hacker News Reader
Parent
Full thread
matthuggins
·
What if you tried to sort an array of objects or functions?
View on HN
willtim
·
If one doesn't specify a comparator and there is no obvious/sensible default, then an error would be perfectly reasonable.
Reply on news.ycombinator.com