You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@emmanueljohn1 code-wise, the idea would be to introduce a new macro defnc- which adds :private true to the metadata of the display-name symbol and passes it to defnc.
I should take the time to create contributing docs, but as of now the best way to develop this would be to:
Test by using defnc- in a new namespace and try and refer to it workshop.core. you should see a compiler warning saying that it's not public
I think you could also add a test for this in helix.core-test:
(defnc-private-comp
[]
"can't see me outside of this namespace!")
(t/deftestprivate-component-definition
(let [metadata (meta #'private-comp)]
(t/is (:private metadata))))
Not 💯 on that but that's how I would try and tackle it first!
No description provided.
The text was updated successfully, but these errors were encountered: