General

Profile

treznick (Tom Reznick)

Issues

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

Activity

10/23/2015

03:58 AM Ruby Feature #11537: Introduce "Safe navigation operator"
Thanks for the thoughtful replies guys! That definitely helps clarify the `.?` operator
Matthew Kerwin wrote:
> On 23/10/2015 2:46 AM, <merch-redmine@jeremyevans.net> wrote:
> ...
treznick (Tom Reznick)

10/22/2015

04:29 PM Ruby Feature #11537: Introduce "Safe navigation operator"
Hi,
I think we may have found some unexpected behavior with the `.?` operator.
If I call the following:
s = Struct.new(:x)
o = s.new()
o.x #=> nil
o.x.nil? #=> true
o.x.?nil? #=> nil
o.x.kind_of?(Nil...
treznick (Tom Reznick)

Also available in: Atom