I think it is originally from China, I see it a lot in Chinese stories and never seen it anywhere else (except here now).
Re:When are enums not a code smell?
by marcosdumay on Monday November 22, 2021 @11:01AM
(#29307828)
Hum... I know it from Portuguese literature.
I was able to find some references from ancient India, but nothing about it coming from there.
The story itself seems to be ancient, but I couldn't find where it originates from.