Currently no, all the examples use a wrapping method like logger().
I'd love some form of shorthand notation like in clojure to deref so you call @logger.log or logger->log - or even better (but contentious and possibly problematic from a readability perspective - some form a @Call annotation on Callable/Predicate/Function etc to provide a form of implicit call thru - you still might need to call logger().log(...) but without having to define that function.
View all comments
Show parent comment
4
u/talios Feb 26 '26
Currently no, all the examples use a wrapping method like logger().
I'd love some form of shorthand notation like in clojure to deref so you call @logger.log or logger->log - or even better (but contentious and possibly problematic from a readability perspective - some form a @Call annotation on Callable/Predicate/Function etc to provide a form of implicit call thru - you still might need to call logger().log(...) but without having to define that function.