Replies: 3 comments 9 replies
-
Hey @pteasima, this makes a lot of sense to me. I'm gonna chat about it with @stephencelis and we'll get back to you! |
Beta Was this translation helpful? Give feedback.
-
This change invites to define overloads when the |
Beta Was this translation helpful? Give feedback.
-
@tgrapperon if you count boilerplate in number of expressions, not number of characters, there's a somewhat ugly trick that might solve your dilemma https://twitter.com/pteasima/status/1570772309866348546?s=21&t=685c149IN0atJ3WF8GTWIw There are good reasons neither Apple nor pointfreeco have adopted this, but it does avoid several additional overloads and maintains the use of keypaths. This isn't specific to cases where |
Beta Was this translation helpful? Give feedback.
-
Discussion to go alongside my draft PR #1395
#1395 (comment)
@stephencelis @mbrandonw in case you end up rejecting this, would you mind elaborating why your sample code favors separate enums for defining the
DependencyKey
conformance? I like that its possible to do that, but it wouldn't be my first choice for a best practice.Beta Was this translation helpful? Give feedback.
All reactions