Fork me on GitHub
#fulcro
<
2019-10-15
>
Abhinav Sharma13:10:13

Hello, I came across a curious behavior in Cursive today. Even though the functions like f.a.denormalize/add-union! are defined as private - Cursive still suggests them for code-completion. As far as I understand, the private defs shouldn’t be coming up there - or am I missing something here? I’m on fulcro-3.0.4 and here’s the def for reference https://github.com/fulcrologic/fulcro/blob/a0cf2957250ed6fa3819d00a5acbc2f0b66b7eaa/src/main/com/fulcrologic/fulcro/algorithms/denormalize.cljc#L121

wilkerlucio13:10:42

its fine to complete on private methods, you can actually call them using a trick: (#'some-ns/private-fn "bla")

wilkerlucio13:10:08

I see private is more a hint of "this may not be supported on future" than a hard "you can't call this"

👍 1
cjmurphy13:10:49

There's a #cursive channel as well. Although I think Colin (cursive programmer) is pretty busy at the moment.

Abhinav Sharma14:10:15

Ah, I see - thanks @U066U8JQJ and @U0D5RN0S1 ( yeah, the cursive channel is jam packed already and I just had a minor doubt 🙂 )

Abhinav Sharma14:10:46

@U066U8JQJ, but I think that then there’s no way to distinguish from outside whether a function if private or not?

wilkerlucio14:10:29

@U2BU9G0LT just navigate to the source and check it :)

😅 1
souenzzo16:10:38

(-> #'not-my/function meta :private)

parens 1