cry's blog

By cry, history, 3 years ago, In English

You can now name your variables with emojis in C++20 :D

Proof of C++20 submission: https://mirror.codeforces.com/contest/80/submission/140848199

It does not work in other C++ versions, such as C++17: https://mirror.codeforces.com/contest/80/submission/140847859

This is a revolutionary moment in variable naming, and an incredible breakthrough for the community <3

  • Vote: I like it
  • +153
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it
similar one(not in Codeforces)
»
3 years ago, # |
  Vote: I like it +30 Vote: I do not like it

I would like to know if this complies with rule #4 from "Can-do's and Can't-do's":

It is forbidden to obfuscate the solution code as well as create obstacles for its reading and understanding. That is, it is forbidden to use any special techniques aimed at making the code difficult to read and understand the principle of its work.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +46 Vote: I do not like it

    I don't believe that it is obfuscation any more than typical 3-letter cp variable names.

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +17 Vote: I do not like it

      My primary concern here is not that names make no sense to me but rather that they are hard to differentiate from one another, i.e. two 3-letter variable names visually differ way more than two similar emojis.

»
3 years ago, # |
  Vote: I like it +56 Vote: I do not like it

Solved Watermelon problem with this powerful technique! https://mirror.codeforces.com/contest/4/submission/140885488

Finally my variables names describe its purpose

»
23 months ago, # |
  Vote: I like it +2 Vote: I do not like it

Doesn't works anymore.

»
6 months ago, # |
  Vote: I like it 0 Vote: I do not like it

sadly it doesn't work anymore