Found some pretty neato syntax with a guava's `Eve...
# announcements
g
Found some pretty neato syntax with a guava's
EventBus
and kotlin:
Copy code
eventBus.register(@Subscribe fun(event: String){
  //...
})
I presume the
val x = fun(something: Something): Something { ...
syntax was a nod to javascript devs (who may or may not use it?), but on the JVM its backed by good ol' anonymous classes, which means I presume guava picks up on the
@Subscribe fun invoke(something: Something)
like it would with any other subscriber. this language is neat!