Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

Commented Feature: Support for specifying host method arguments by name [80]

0
0
Neither JavaScript nor VBScript have native support for named arguments, but some way to specify host method arguments by name might be useful.
Comments: That would be nice; unfortunately it isn't valid JavaScript syntax. [Object literal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types?redirectlocale=en-US&redirectslug=JavaScript%2FGuide%2FValues%2C_variables%2C_and_literals#Object_literals) syntax seems to be the next best thing, but you'd have to pass it through a host method to get something that can be recognized as a set of named arguments as opposed to an object.

Viewing all articles
Browse latest Browse all 2297