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

Proposal: replace ๐Ÿฅ‘ with ๐Ÿ†— (was: with ๐Ÿšง)

meithecatte opened this issue ยท comments

โญ๏ธ Proposed change

Replace the emoji used for error handling with ๐Ÿšง.

๐Ÿค” Rationale

As far as I can see, ๐Ÿฅ‘ has no intuitive connection to error handling. On the other hand, ๐Ÿšง is already associated with errors, and can be used in this place without grammar ambiguity.

Moreover, handling the error might make the code take a detour or cut the execution short, while roadworks might make you take a detour or cut your roadtrip short.

๐Ÿ•บExample

๐Ÿšง a ๐Ÿคฆโ€โ™‚๏ธ๐Ÿ‡๐ŸŸโ—๏ธ ๐Ÿ‡
  ๐Ÿ˜€ a โ—๏ธ
๐Ÿ‰
๐Ÿ™… error ๐Ÿ‡
  ๐Ÿ˜€ ๐Ÿช๐Ÿ”คAn error occured: ๐Ÿ”ค ๐Ÿ’ฌerrorโ—๏ธ ๐Ÿช โ—๏ธ
๐Ÿ‰
commented

Replacing ๐Ÿฅ‘ is certainly a good idea, but I think ๐Ÿšง is not the ideal replacement. ๐Ÿšง is used as a "identifier with special" (or so) already, using it as an error handler would overload it with even more special meaning. Moreover, ๐Ÿšง can occur quite frequently and seem redundant and I think that error handling should be obvious.

Hmm, maybe syntax similar to optionals could work, then?

โ†ช๐Ÿคฆโ€โ™‚๏ธ๐Ÿ‡๐ŸŸโ—๏ธโžก a ๐Ÿ‡
  ๐Ÿ˜€ a โ—๏ธ
๐Ÿ‰
๐Ÿ™… error ๐Ÿ‡
  ๐Ÿ˜€ ๐Ÿช๐Ÿ”คAn error occured: ๐Ÿ”ค ๐Ÿ’ฌerrorโ—๏ธ ๐Ÿช โ—๏ธ
๐Ÿ‰

Alternatively, how about ๐Ÿ’ฅ?

commented

Maybe a policeman? ๐Ÿ‘ฎโ€โ™‚๏ธ๐Ÿ‘ฎโ€โ™€๏ธ Police should provide safety and help with detours, as you put it. Or a police car ๐Ÿš”?

Although reusing optional assignment syntax would be nice, itโ€™s counterintuitive if the worse statement suddenly defines a variable.

commented

Or even better ๐Ÿ†—! That would go well together with the other flow control emojis and could be read as โ€œif everythingโ€™s ok go into this blockโ€.

๐Ÿ†— makes perfect sense for this.