i’d be happy to avoid it whenever i can
it’s a trade-off: less complex code to write vs. more complex compilation setup
k
kqr
09/13/2021, 1:39 PM
not sure I follow
kqr
09/13/2021, 1:40 PM
I mean instead of
Copy code
Optional.ofNullable(cache.get(key, Thing.class))
.orElse(/* Get Thing */);
use something like
Copy code
getCached(cache, key) { /* Get Thing */);
n
nfrankel
09/13/2021, 5:11 PM
sorry, i didn’t read the linked post 😅
but i wouldn’t call it AOP
AOP has one characteristic for me: bytecode manipulation
whether at compile-time or runtime