https://kotlinlang.org logo
#compose
Title
# compose
a

andrew

06/14/2022, 2:00 AM
Is it alright for an applier node to have access to the applier via callbacks?
🤔 1
a

Adam Powell

06/14/2022, 3:15 AM
I'd probably avoid exposing it but it looks from these examples like the thing you want to give these callbacks is
engine
a

andrew

06/14/2022, 3:28 AM
I might need to expose other things, such as the scene, view, etc from filament
If not, I’ll probably restrict the scope
a

Adam Powell

06/14/2022, 3:30 AM
Then I would probably define an abstraction to represent that rather than expose the applier for it
The applier is generally a manipulator of your data structure, not the structure itself
Giving the nodes a reference to the abstraction that performs those tree manipulations is kind of a weird layering
Kind of a circular dependency
a

andrew

06/14/2022, 3:33 AM
Yeah, the whole circular dep thing was a concern of mine
4 Views