In order to deal with null we have the "Elvis" ?: to invoke a method. To ease the use of curried functions, we could add a "Carly" operator with the same behavior on direct calls. So instead of chaining using ref?:invoke(...)?:invoke(...) we could do ref?(...)?(...).
In order to deal with
null
we have the "Elvis"?:
to invoke a method. To ease the use of curried functions, we could add a "Carly" operator with the same behavior on direct calls. So instead of chaining usingref?:invoke(...)?:invoke(...)
we could doref?(...)?(...)
.