Is there specific guidance about not using express...
# compose
e
Is there specific guidance about not using expression bodies for Composable functions that emit UI nodes? I thought that there was, but I can't find it in Google's API guidelines.
s
It is more of a readability concern, I think some style guides force you to use block syntax for everything returning unit
Don't think we have that internally, I saw a lot of Unit returning functions with expression syntax
e
I don't have a problem with them in general, but with Compose I think it gives the wrong impression, e.g.
Copy code
@Composable
fun Foo() = Row {
  Text("Some text")
}
🙏 1
s
Yeah, agree