πβοΈ on π¨, π― and π should have an interrogative mood: πβ
meithecatte opened this issue Β· comments
π returns the length of a collection. In my opinion, this operation is inherently interrogative. The only reason I can think of for an imperative mood is backwards compatibility to back when interrogative mood is not a thing.
I don't know what the policy on backwards compatibility is, since 1.0 has not been released yet. An "audit" of the moods of all methods in s
might be warranted.
I actually agree with you. Already, the internal representation of list and dictionary use πβ but I have not changed the public interface, mainly due to backwards compatibility. Now might be the right time to do so.. Feel free to open a pull request.
If so, perhaps the name could be changed to π or π? That would certainly convey the meaning better than a chicken.
Agreed! I already thought about changing it to π. (π is UTF-8 byte length on string so itβs not a good candidate.)
Hmm, we could change the UTF-8 byte length to ππΈπ§ to be more explicit. I'm not sure if this is desirable or an unnecessary workaround, though.