Status/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): Nicholas Tunney / Nicholas Tunney (Nicholas Tunney)
Created: 03/09/2016
Components: Language
Versions: 2016
Failure Type: Unspecified
Found In Build/Fixed In Build: Alpha_v12 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Mac All
Vote Count: 13
I'd like to propose that a ? safe navigation operator is added to handle array notation. An example is included below on line 5:
1: <cfscript>
2: st = {};
3: st.key1 = "My Value";
4: writeDump(st?.key1);
5: writeDump(st?["key1"]);
6: </cfscript>
This would work exactly like ?. works for dot notation on line 4, and would round out the functionality. Currently this throws a parse error. I know that C# has this functionality, and maybe other languages do as well. Seems pretty useful to me.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126681
External Customer Info:
External Company: AboutWeb, LLC
External Customer Name: Nicholas Tunney
External Customer Email: NIC.TUNNEY@NICTUNNEY.COM
External Test Config:
Attachments:
Comments: