Timeline for Writing an API that is syntactically valid in multiple programming languages
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 18, 2013 at 14:55 | comment | added | Anderson Green | 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/… | |
Mar 18, 2013 at 14:35 | comment | added | user40980 |
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.
|
|
Mar 18, 2013 at 14:17 | comment | added | Anderson Green | 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)? | |
S Mar 18, 2013 at 4:50 | history | suggested | KaeruCT | CC BY-SA 3.0 |
corrected spelling
|
Mar 18, 2013 at 4:27 | review | Suggested edits | |||
S Mar 18, 2013 at 4:50 | |||||
Mar 18, 2013 at 3:34 | history | answered | user40980 | CC BY-SA 3.0 |