The safe-navigation operator is a great way to avoid repeated null checks
The safe-navigation operator is a great way to avoid repeated null checks. However, sometimes it can go a bit wrong. This post outlines a specific case where care is needed to ensure you don't break existing logic.
The safe-navigation operator is a great way to avoid repeated null checks #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/the-safe-navigation-operator-is-a-great-way-to-avoid-repeated-null-checks