CoffeeScript gets converted to JavaScript, Groovy to Java.
Is there a language that was designed to allow its functions to be converted into multiple languages?
One could write string manipulation or HTML snippet generation that could be used as a library, but if a similar requirement is found in another language, the functions of that library would need to be translated.
Is there such a language that includes two or more translation targets already?
I am mostly interested in Java, JavaScript, Perl.
I would be interested in C/C++, but only if there were safeguards to prevent buffer overflow vulnerabilities from being created.
What about Haxe? C++, Flash, JavaScript, and more.