Can someone please help with this question: why ar...
# compose
k
Can someone please help with this question: why are the
@DslMarker
annotations of layout functions (like
@LayoutScopeMarker
and
@LazyScopeMarker
not merged as only one (at least less ones)? The reason I ask: Multiple layout
@DslMarker
annotations let the layout scopes of different markers ( like
BoxScope
and
LazyItemScope
) NOT mutually exclusive to each other, then you can call the functions and properties of an outside scope from an inside one, which should not make any sense. So what’t the point of separating them into different ones, making it more complex at the library framework side and harder to write right code at the developer side? There must be some benefit, right?