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
-
C0D4694965yI 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. -
C0D4694965y@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. -
RealKC9735yWell, 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.
-
RealKC9735y@RealKC I tested it on godbolt.org with ICC, GCC, Clang and MSVC and neither allow emoji names for functions ðŸ˜
-
RealKC9735y@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
Can somebody confirm whether this thing actually compiles? CD
joke/meme
devrant
just dev things
funny