Is there any specific reasoning why LazyGridScope ...
# compose
z
Is there any specific reasoning why LazyGridScope and LazyListScope are independent? Why not having a common LazyScope that they both use, which would allow a developer to use the same items/item function in both types of lazy layouts Something like this:
Copy code
@Composable
fun LazyScope.Header() { ... }

LazyVerticalGrid {
  Header()
}

LazyColumn {
  Header()
}
p
Perhaps to discourage inheritance in favor of composition. Just guessing.
j
There is some things like spanning, only working in grid and not list as of example. Maybe interface could inherit but most probably more cases where not overlap at all.