WAMP supports positional arguments (args) and keyword arguments (kwargs). WAMP also supports positional and keyword *return* values. All of the former is supported even when combined.
JavaScript only supports positional arguments and single value positional returns
Python supports positional and keyword arguments, but only single value, positional returns.
Oracle PL/SQL and PostgreSQL PL/pgSQL support all combinations - as WAMP.
WAMP was designed with a superset of all approach. We can expose any procedure in any language - naturally. The price is: possibly wrapping on the callee side if the calling language has less features.
The question why we use a single positional return with dict instead of a keyword based return is justified. We could have done the latter also.
The choice was made for reasons of convenience. Very few languages natively support anything but single positional returns.
I personally dont care much: we could have a community vote on this choice (and generally on use of this in WAMP meta procs in general)
Sent from Mobile (Google Nexus 5)
--
You received this message because you are subscribed to the Google Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crossbario+...@googlegroups.com.
To post to this group, send email to cross...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/42918767-1004-4113-9ae0-26d02170d854%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.