ScalaNullSafe icon indicating copy to clipboard operation
ScalaNullSafe copied to clipboard

Add `.?` extension method to support using result of null macro in a function

Open ryanstull opened this issue 6 years ago • 0 comments

Currently there's no equivalent in ScalaNullSafe for

Option(a).flatmap(a => f(a))

In other words, you can't use the result of a null-safe selection in a function call.

Adding the .? extension method to all AnyRef objects would solve this issue.

ryanstull avatar Jul 29 '19 17:07 ryanstull