Closed aseiot closed 3 years ago
Correct grammar is
o := { %(true ? "x" : "y") %: "value"}
I can't remember whether the syntax is allowed officially, and I can not found related instrument in document as well. But the code I posted is working.
Anyway, I will change my code to suppress the alert. Thanks!
Tested with AutoHotkey_L v2.0-a138-7538f26
Sorry, It may due to I am running my custom build of AHK, which object literal is supporting "string" as the property name as before. I will double check the issue with official AHK release before reporting next time.
Demonstrated as follow:
o := { (true ? "x" : "y") : "value"}