Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681456yI 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. -
C0D4681456y@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. -
RealKC9706yWell, 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.
-
RealKC9706y@RealKC I tested it on godbolt.org with ICC, GCC, Clang and MSVC and neither allow emoji names for functions ðŸ˜
-
RealKC9706y@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
Related Rants
-
Skipp36What devrant taught me: Everyone hates java Everyone hates php Everyone hates spaces Everyone hates tabs Ever...
-
ahmedam23What only relying on JavaScript for HTML form input validation looks like
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
Can somebody confirm whether this thing actually compiles? CD
joke/meme
devrant
just dev things
funny