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.
"๐".reverse() == "๐"
Has someone made a library for that?
Use a dynamically typed language and you won't have to: just override the default reverse() method on strings like a Real Programmer!
Unintended consequences you say? Nonsense! What could possibly go wrong?
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
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.
"๐".reverse() == "๐"
Has someone made a library for that?
Use a dynamically typed language and you won't have to: just override the default
reverse()
method on strings like a Real Programmer!Unintended consequences you say? Nonsense! What could possibly go wrong?
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
Lua could possibly do this
"๐ฎ๐ช".reverse() = "๐จ๐ฎ"
"A".reverse() === "A"
"A".reverse() == "โ"
Where is your god now?!
Yet we live in a world where