tldr; Beware, both
try and Ruby’s safe navigation operator
&. will always return
nil when operating on a
For example, I would have expected either to return a response like so:
> nil.try(:to_s) => "" > nil&.to_s => ""
However this is not the case:
> nil.try(:to_s) => nil > nil&.to_s => nil