Skip to content
Discussion options

You must be logged in to vote

Hi @RandomActsOfCode, nope no real downside! If that's the style that you/your team prefer, then definitely go for it!

There's only one small caveat, and it's something that even came up recently. Using Reduce { ... } in a body can give the Swift compiler troubles when it comes to autocomplete and warnings. So, just supply the generics if you go that route, Reduce<State, Action> { ... }, and the compiler should be able to do a better job. Hopefully this gets fixed in Swift someday in the future.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tgrapperon
Comment options

Answer selected by RandomActsOfCode
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants