29

Can somebody confirm whether this thing actually compiles? CD

Comments
  • 4
    Of course it does..
  • 2
    I can't see anything syntactically wrong with it, but I can see plenty wrong with it using emojis.

    This probably does compile as emojis are just Unicode at the end of the day.
  • 2
    @iamavalos A brief googley search suggests it has some limited support without using a library.

    I guess the only way we will know for sure is if a c++ dev writes and builds it.
  • 2
    @C0D4 I will try that tomorrow.
  • 2
    Well, the standard does technically allow Unicode identifiers(cppreference page about identifiers: https://en.cppreference.com/w/cpp/... ). If no one has tried until then, I'll try something like the above once I get access to a PC in a couple hours.
  • 3
    @RealKC I tested it on godbolt.org with ICC, GCC, Clang and MSVC and neither allow emoji names for functions 😭
  • 2
    @RealKC it actually seems that Clang accepts emoji identifiers given its on the trunk version.

    The other compilers don't accept them for macros, or variables either
  • 4
    @C0D4 It looks weird, but it compiles and actually works in VS2019 with C++17

    I guess I'll be using the pizza iterator from now on.
  • 4
    @Fell we are doomed 😢
  • 2
    Burn the heretics.
Add Comment