3 ms·
Pretty disappointing that it relies so much on comments. You can write an arbitrary 'polyglot' program in any N languages that have incompatible comment delimi
by piaste 10y ago
Pretty disappointing that it relies so much on comments.
You can write an arbitrary 'polyglot' program in any N languages that have incompatible comment delimiters: just write the same program in each language and wrap it in the comment delimiters of the other N-1 programs. That's not interesting, though.
- ZoF 10y agoYep, I was expecting something different.
- Retric 10y agoThat's not enough, if you start with language A's escape sequence /* that must not break languages B, C, D, E or F when starting a file with /* next B's escape sequence must not cause problems with C, D, E, or F. So, they must be different but still compatible.