0
Cross language platform code conversion
Is anyone aware of a process of cross language platform code conversion. Like converting code written in Java to python and vice versa without having to rewrite it?
1 Respuesta
0
I am not, but I suppose if you wrote a bunch of Java methods that basically converted Java methods into Python functions it might work.. Like
public static void print(String A){
System.out.println(A);
}
print("Hello");
print("Weird way to do things");
basically it becomes a Java method that is the Python function.. I guess if you wrote one of those for each Python function in your program, it would become a copy and paste situation to move your code.. but if you are going thru all that trouble, you might as well re-write it in Java anyway