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
I have noticed that the utility of having a name is not really high and moreover having to pass a :name key every time can be tricky - for instance when generating processors dynamically:
(defnjourney-processor-tap
[index command]
(let [uuid (:uuid command)]
[{:processor #(hash-map:response (get-in % [:journeys index])
:command command)
:path [:journeys index]
:name (str"hack-" uuid)} ;; this should be improved))
If we passed the symbol of the function instead of the function itself we could auto generate the name for instance.
The text was updated successfully, but these errors were encountered:
Agree, the name should be optional. But I think it shouldn't be removed, as it can still can be used by helper function in order to replace impure steps with mocks when testing
I have noticed that the utility of having a name is not really high and moreover having to pass a
:name
key every time can be tricky - for instance when generating processors dynamically:If we passed the symbol of the function instead of the function itself we could auto generate the name for instance.
The text was updated successfully, but these errors were encountered: