This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-29
Channels
- # announcements (6)
- # babashka-sci-dev (15)
- # beginners (46)
- # calva (1)
- # clj-kondo (1)
- # clojure-australia (2)
- # clojure-europe (10)
- # clojure-uk (4)
- # clojured (3)
- # clojurescript (16)
- # fulcro (6)
- # helix (1)
- # hyperfiddle (8)
- # instaparse (28)
- # joyride (33)
- # malli (17)
- # off-topic (13)
- # pedestal (3)
- # portal (5)
- # react (1)
- # sci (1)
- # sql (6)
- # vim (1)
Why does the README recommend using #'p/submit
instead of plain p/submit
?
I understand how it would be useful to somehow who's working on Portal itself. But how is it useful for regular Portal users?
But that's my point - for it to happen, the user has to be working on the Portal itself, right? Because it's not a user-provided custom submit
but rather p/submit
- a part of Portal.
Maybe it's just me, but I find it a bit confusing. Especially when the documentation mixes p/submit
, some custom submit
, and inline (partial ...)
(which automatically prevents you from redefining or removing a tap), all while the #'
is useful only for the second case.
To elaborate a bit on why it confuses me: when I see #'
, even though I myself never use it, I immediately think: "The code that follows that reader tag is expected to be changed and reloaded by the user at some point".
So when I see #'p/submit
, I immediately think that the user of Portal is expected to be changing Portal itself, for whatever reason. And when I consequently see (add-tap (partial p/submit ...))
, it's an immediate signal that this part is not expected to be changed or reloaded by the user, for whatever reason. And then there's a whole thought train in search of all the "why"s. :)
But again - maybe it's just me.