Is the joke that this would result in an infinite loop? Cuz it absolutely does not do that.
First pass of wishes
do the opposite of wish 2.
“don’t do wish 3”, reinterpreted due to wish one to “do wish 3”.
ignore wish 1.
Wish three make him go back to wish one to reinterprete, so it is now understood as:
[ignored]
dont do wish 3 (understood as is now)
[doesn’t matter, we’re not doing it, per wish 2]
The execution of wish 3 removes wish 1, and wish 2 removes wish 3. OP would probably argue that if wish 3 doesn’t execute on the second loop then wish 1 can’t be ignored, and so it goes back to the original interpretation and gets stuck in a loop, but that is a bad take. The manner of interpretation is sequential, even if recursion is implemented. It doesn’t (can’t) get reinterpreted as a whole. The moment you’re told not to do the next step, you’re done. So you just wished for no wishes. Good job, you fooled yourself. Go take an algorithms class.
Furthermore, pretty sure any sensible genie would say “sorry, all wishes are final” or "I’m a genie. I’m literally incapable of ignoring your wishes. That or, “you’re attempting to create an infinite loop in logic that I couldn’t possibly execute on because it creates a paradox. But literally nothing in you’re wishes does anything but effect other wishes, having absolutely no noticeable external effect on the world so… done. Enjoy your weird self-satisfaction over having the ability to reshape all of reality on your personal whim and still achieving literally no effect on the universe. Your mother was right about you. Go fuck yourself.”
Is the joke that this would result in an infinite loop? Cuz it absolutely does not do that.
First pass of wishes
Wish three make him go back to wish one to reinterprete, so it is now understood as:
The execution of wish 3 removes wish 1, and wish 2 removes wish 3. OP would probably argue that if wish 3 doesn’t execute on the second loop then wish 1 can’t be ignored, and so it goes back to the original interpretation and gets stuck in a loop, but that is a bad take. The manner of interpretation is sequential, even if recursion is implemented. It doesn’t (can’t) get reinterpreted as a whole. The moment you’re told not to do the next step, you’re done. So you just wished for no wishes. Good job, you fooled yourself. Go take an algorithms class.
Furthermore, pretty sure any sensible genie would say “sorry, all wishes are final” or "I’m a genie. I’m literally incapable of ignoring your wishes. That or, “you’re attempting to create an infinite loop in logic that I couldn’t possibly execute on because it creates a paradox. But literally nothing in you’re wishes does anything but effect other wishes, having absolutely no noticeable external effect on the world so… done. Enjoy your weird self-satisfaction over having the ability to reshape all of reality on your personal whim and still achieving literally no effect on the universe. Your mother was right about you. Go fuck yourself.”