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: If we can access named argument from script like this it would be great. it keeps function readable and we can pass arguments in any order. ex: CalculateBMI(name:'Jhon', weight: 123, height: 64) Person person = new Person(firstName: 'John', lastName: 'Smith')

Viewing all articles
Browse latest Browse all 2297

Trending Articles