ScalaNullSafe
ScalaNullSafe copied to clipboard
Add `.?` extension method to support using result of null macro in a function
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.