General

Profile

stevendaniels (Steven Daniels)

  • Login: stevendaniels
  • Registered on: 10/07/2019
  • Last sign in: 10/08/2019

Issues

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

Activity

10/08/2019

11:26 PM Ruby Feature #16244: Add a Time#before? and Time#after? method
sawa (Tsuyoshi Sawada) wrote:
>You should not be writing like that. You should either do somthing like
> ...
In your example, your coercing the dates to Floats and then comparing integers. Part of the reason I think `before?`/`after?...
stevendaniels (Steven Daniels)

10/07/2019

07:43 PM Ruby Feature #16244: Add a Time#before? and Time#after? method
jeremyevans0 (Jeremy Evans) wrote:
> I would guess the `>` and `<` symbols are probably more understandable to people whose native language is not English, at least.
It's hard to speak for all non-native English speakers one way ...
stevendaniels (Steven Daniels)
04:47 PM Ruby Feature #16244 (Open): Add a Time#before? and Time#after? method
Comparing times using `>` and`<` can be pretty confusing.
I'd like to propose `Time#before?` and `Time#after?` methods for aliasing `Time#<` and `Time#>`
These method aliases would make the code more readable. :)
Current syntax...
stevendaniels (Steven Daniels)

Also available in: Atom