Why one `TextField()`'s boolean argument is named ...
# compose
j
Why one `TextField()`'s boolean argument is named
isError
and another without
is
-
readOnly
?
🤔 1
😁 1
z
is
is a material prefix? Jk, idk, probably no reason I’m guessing.
j
I mimic this naming in our composables and l get asked about this so trying to come up with other argument than "this is material way"
s
I believe "error" is easier to read as "error message", readOnly does sound like a boolean (to me)
2
z
Makes sense, it would still be nice to be consistent with prefixes though 🙈
s
isReadOnly would be better I agree
👍 1