Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • If that's the case, then would I be better off manually porting an entire API (possibly with 200 different functions) into 8 different languages, instead of writing a single API that is syntactically valid in all of these languages (which would depend on just 10 or 20 language-specific functions in each language)? Commented Mar 18, 2013 at 14:17
  • Yes. Consider the difficulty alone of writing something to make it so that there is some structure for arrays that is common to Javascript and Java - String[] theStr = {"Hi!"} and var theStr = ["Hi!"] When you can find a way to do this with the same syntax. Commented Mar 18, 2013 at 14:35
  • To solve this problem, I'd probably need to represent arrays as JSON strings, and then write conversion functions to convert the strings to string arrays in each language. Fortunately, there are already some libraries for this purpose: google.com/… Commented Mar 18, 2013 at 14:55