eclipse-archived / golo-lang

Golo - a lightweight dynamic language for the JVM.
http://golo-lang.org/
Eclipse Public License 2.0
476 stars 91 forks source link

Guarded call operator #363

Open yloiseau opened 8 years ago

yloiseau commented 8 years ago

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?(...)?(...).

jponge commented 8 years ago

:+1:

yloiseau commented 8 years ago

(called "Carly", since "call me maybe" :smile:)

danielpetisme commented 8 years ago

I love this one !