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

Use one emoji for the NOT operation on πŸ‘Œ and πŸ”’

meithecatte opened this issue Β· comments

⭐️ Proposed change

Currently, the NOT operation of πŸ‘Œ uses ❎, while NOT of πŸ”’ is 🚫. I propose that the same emoji is used for both functions. I suggest using 🚫 for this purpose, though I'm open to using ❎ instead.

πŸ€” Rationale

The usage of two separate emojis for the same operation has a number of downsides:

  • It takes more effort to remember which emoji you need to use for a specific type.
  • It consumes more of the emoji "namespace" for elementary operations, taking away potential meanings from user code (as kept in mind by developers, not necessarily as enforced by the compiler).
  • Any Emojicode-specific entry methods will need to disambiguate between the two.

Perhaps it is worth pointing out the prior art in this area - Rust uses the prefix ! operator for both boolean and bitwise NOT.

πŸ•ΊExample

🏁 πŸ‡
  β†ͺ️ πŸš«πŸ‘Žβ— 🀝 🚫3❗ πŸ™Œ -4 πŸ‡
    πŸ˜€ πŸ”€Look ma, same emojiπŸ”€ ❗
  πŸ‰
πŸ‰
commented

That seems reasonable. I prefer ❎ though. It works nicely for logical not as it includes both a negative aspect (the cross) and a positive one (green).

Note that the emoji is not universally green. Funnily enough, GitHub itself uses a custom font that uses a white background here.

commented

Fair enough, but I still prefer ❎. It is used way more often than 🚫 so less Code needs to be changed.

Fair enough :D