Title:
Bug 75106:(Watson Migration Closure)It's important that ColdFusion 9 support using colon-syntaxed property value pairs for object literal argument notation:
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): David McGuigan / David McGuigan (David McGuigan)
Created: 01/20/2009
Components: Language
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 9
Problem:
It's important that ColdFusion 9 support using colon-syntaxed property value pairs for object literal argument notation:
<cfset testMethod( { property1: value1, property2: value2 } ) />
in addition to the current
<cfset testMethod( { property1 = value1, property2 = value2 } ) />
As Sean Corfield noted, CF already allows : in named arguments...
function func( foo, bar ) {
return foo & bar;
}
x = func( foo : 42, bar : "answer" );
writeOutput(x);
Also:
x = func( argumentCollection : { foo = 42, bar = "answer" } );
So why not:
x = func( argumentCollection : { foo : 42, bar : "answer" } );
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037333
External Customer Info:
External Company:
External Customer Name: David McGuigan
External Customer Email: 5E0D54C04462BF5E992016B6
External Test Config: 01/20/2009
Attachments:
Comments: