Announcing TCA Composer! #1
scogeo
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was inspired by the recent Point-Free Macro Bonanza to explore some ideas I have had for some time in reducing boilerplate in TCA-based apps. Macros seemed like the perfect way to accomplish this. The project began with a modest goal of simplifying how to use scopes in TCA. Instead of writing code like
store.scope(state: \.child, action: \.child)
, I wanted to more concisely writestore.scopes.child
. That turned out to be fairly easy to implement and my mind was then filled with possibilities of what else I could accomplish with macros. So I began incrementally adding new capabilities to my macro framework using my own apps as a test bed and playground.The final result is called TCA Composer. I'm happy to release it publicly today after a couple months of development in private. Over the coming days and weeks I will be improving the documentation, adding additional examples, and implementing a few additional capabilities that many may find useful.
Have any questions? Is there a particular TCA example you would like to see? Let me know in the comments.
Beta Was this translation helpful? Give feedback.
All reactions