emojicode / emojicode

πŸ˜€πŸ˜œπŸ”‚ World’s only programming language that’s bursting with emojis

Home Page:https://emojicode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ”β—οΈ 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.

commented

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.

commented

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.