February 02, 2015
Jonathan M Davis:

>>    arr.reverse.map!sqrt
>
> Yes, but arguably, chaining calls in this case is bad,

We have discussed this some time... and I'd like reverse() to return the original array (like the deprecated array .reverse property). It's not a perfect design, but allowing UFCS chains is quite important.

Bye,
bearophile
1 2
Next ›   Last »