Ruby’s Safe Navigation Operator &. and is it a Code Smell?
Ruby's safe navigator operator "&." isn't inherently bad. In fact if you have something like "foo && foo.bar" in your code, Rubocop will admonish you for not using safe navigation. However, using "&." too often in your code is probably something to avoid.
0 Comments
Recommended Comments
There are no comments to display.