but sometimes “👍🏽”.reverse() == “🏽👍”
Imagine, if you will. A world where string reverse changes the character codes of the string.
What beauty, what wonder would such a world have?
Destruction and despair. Developers unsure why their programs don’t respond correctly. Ships run aground on islands already overcrowded with those who were shipwrecked before. Signal antennas pointed towards the sun with it’s constant noise. Spacecraft whose exhaust melt to slag populated cities as people briefly scream their final terrors of pain and suffering.
This, is a world we should not want to live in. A world you can only find, in the Twilight Zone.
Nah, this could’ve been possible with some clever fuckery in defining those emojis’ unicode content, like with flags that are not a single point but three independent ones, allowing you to do this:
"🇧🇬".reverse() == "🇬🇧" "🇬🇪".reverse() == "🇪🇬"THANKS. I didn’t get the flag joke at first @[email protected]
“🙂”.reverse() == “🙃”
Then we need reverseX and reverseY
🙂.reverseX = 🙂
“🇮🇪”.reverse() = “🇨🇮”
Has someone made a library for that?
deleted by creator
I’m tempted to publish an NPM package to do so as a joke, but I fear that it’d get used seriously
Where does it end though? It’s a bit like infinite craft - but instead of combining resources you’d have to find an inverse for every emoji
async function reverse(str){ return ChatGPT.ask(`Please reverse the string ${str}. Reply only with the answer, without other words or symbols.`); }
Lua could possibly do this
Yet we live in a world where

File "<stdin>", line 1 "👉".reverse() = "👈" ^ SyntaxError: cannot assign to function callIt is a font that changes
==to one long equals sign.Oh my bad, that idea didn’t cross my mind.
Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'str' object has no attribute 'reverse'
“A”.reverse() === “A”
deleted by creator
What’s with the lines of both equals symbols being combined together haha?
deleted by creator







