Replies: 1 comment 1 reply
-
@pyrtsa I think we're definitely down to explore this. It's just a matter of coming up with the right name:
We'll think on it and open the floor to other suggestions. In the meantime, defining a helper in your projects isn't the end of the world, though we admit it is annoying 😄 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When looking at call sites of
customDump(...)
in TCA, it strikes me that the most common use (in committed code anyway) must be with theinout String
parameter variant,customDump(_:to:...)
.The downside of that is it turns what could be a one-line expression into three lines of code, every time:
Disregarding the fact that
Swift.dump(...)
also has the same shortcoming, why not consider making theString
returning counterpart_customDump(...)
public, just likediff(...)
is public and returnsString
?The function could be slightly renamed to stand apart—but not too far—from the existing two, e.g.
Beta Was this translation helpful? Give feedback.
All reactions