General

Profile

rafasoares (Rafael Soares)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

04/27/2021

06:30 PM Ruby Feature #17830: Add Integer#previous and Integer#prev
sawa (Tsuyoshi Sawada) wrote in #note-6:
> rafasoares (Rafael Soares) wrote in #note-5:
> ...
No, that's another quote. I'm referring to the one in the paragraph above. Complete excerpt here:
> He has often said that he is “trying t...
rafasoares (Rafael Soares)
04:13 PM Ruby Feature #17830: Add Integer#previous and Integer#prev
sawa (Tsuyoshi Sawada) wrote in #note-4:
> > I think Integer#pred is great as the inverse of #succ, but it reads a bit weird as the inverse of #next, which might be preferable for those going for a more "reads like English" approach.
>...
rafasoares (Rafael Soares)

04/26/2021

05:56 PM Ruby Feature #17830: Add Integer#previous and Integer#prev
marcandre (Marc-Andre Lafortune) wrote in #note-1:
> In general, I don't favor aliases as they usually increase cognitive load, make code less uniform and add very little.
In general, I agree. But in this case, we already have `Integ...
rafasoares (Rafael Soares)
05:27 PM Ruby Feature #17830 (Assigned): Add Integer#previous and Integer#prev
I think `Integer#pred` is great as the inverse of `#succ`, but it reads a bit weird as the inverse of `#next`, which might be preferable for those going for a more "reads like English" approach.
On that note, `#previous` reads better,...
rafasoares (Rafael Soares)

Also available in: Atom