3 ms·
Most would expect 10 to parse as an integer. To specify a string, most would be happy with putting quotes around it. So I don't think dynamic types fully explai
by willtim 7y ago
Most would expect 10 to parse as an integer. To specify a string, most would be happy with putting quotes around it. So I don't think dynamic types fully explains the bizarre behaviour.
- matthuggins 7y agoWhat if you tried to sort an array of objects or functions?
- willtim 7y agoIf one doesn't specify a comparator and there is no obvious/sensible default, then an error would be perfectly reasonable.