3 ms·
I didn't say it's pretty. Merely chose that example to point out the absurdity of challenging Ruby on the grounds of flexibility (of all things). Obviously, i
by moe 12y ago
I didn't say it's pretty.
Merely chose that example to point out the absurdity of challenging Ruby on the grounds of flexibility (of all things).
Obviously, in a real program you'd rather write a custom sort-comparator, use a wrapper-class, or monkey-patch only the specific NaN instances that you want to change the behaviour of.
- bshimmin 12y agoOr use refinements.