Fork me on GitHub
#clj-kondo
<
2023-08-08
>
hkjels14:08:54

If you use dot notation (.) for accessing methods within records, you lose the 'jump to symbol' capabilities, and clj-kondo will issue warnings about unused public variables. Is the idiomatic way to work with records to fully require all of its members? If that's the case, the require statements could grow considerably, leading to a more complex code structure 😞

borkdude14:08:29

you're never supposed to call methods on records via JVM interop, this is what protocol functions are for

hkjels14:08:28

OK. But you're also not suppose to use require all

borkdude14:08:49

I'm not sure what you mean, can you give an example?

hkjels14:08:08

We have some protocols that are quite large. [ns :refer :all] would work fine, but I believe it's frowned upon by the greater community

hkjels14:08:03

it's probably fine for this situation specifically I guess

borkdude14:08:24

probably just use a single letter alias?

hkjels14:08:36

or that of course :face_with_peeking_eye:

hkjels14:08:25

thanks. I have a rewrite to do

borkdude14:08:39

good luck :)