
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Scripting API considerations
We have already dealt with date. But how best to return a map, list, string, etc. Over the script API?
Here is a 'straw man'.
- MAP
Use ScriptableHashMap
- LIST
Use arrays instead. Currently the java script 'json' object is underpowered and does not convert json arrays to java script arrays. Does this affect our choice to use arrays?
- STRING
Are there any considerations here? For example how do we ensure that its a java script string (so the java script string syntax works) rather than a wrapped java object?
- OVERLOADING
Can't be used because most weakly typed scripting languages can't cope with it.
- RESERVED NAMES
The 'delete' method name is reserved by JavaScript are there any other problematic names that we should avoid?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.