That's interesting, I think you mean the difference between a space makes
( +1 vs. + 1 ):
[14] pry(main)> Date.today
=> #<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)>
[15] pry(main)> Date.today +1
=> #<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)>
[16] pry(main)> Date.today + 1
=> #<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)>
(btw: please don't make sexist comments, it's discouraging to many people.)
-gf-
···
On Mon, Sep 27, 2021 at 8:53 AM Die Optimisten <inform@die-optimisten.net> wrote:
Hello,
Another example - perhaps somebody could fix that (many errors have that
source!)Date.today
Date.today +1 # no error, but wrong result!
# Maybe this has been written for women, having calculated their age
Opti
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>