Why one `TextField()`'s boolean argument is named `isError` and another without `is` - `readOnly` ?
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