Re: [a119] Associative or Pseudo- Arrays and Dereferencing Numbers
Posted: 30 Jul 2020, 16:08
@swagfag
(now) {keyN:"valueN"} could be used to access a value of keyN variable and use it as a property name. With previous {"keyN":"valueN"} syntax for immediate (literal) property names.
Well, I didn't ask questions after that update and simply used regex to change all my scripts at once and be done with it. yet I'm curious what caused that change?
(before) {"keyN":"valueN"}: I was able to copy-paste JSON's syntax as is into AHK obj's {} initialization body. {(keyN):"valueN"} syntax seemed appropriate - (expr) that returns a property name.now, u can only do obj:={keyN:"valueN"} to define a property with the literal name obj.keyN;
or obj:={%keyN%:"valueN"} to define a property with the value of the variable keyN
(now) {keyN:"valueN"} could be used to access a value of keyN variable and use it as a property name. With previous {"keyN":"valueN"} syntax for immediate (literal) property names.
R u being sarcastic here?why is that u may ask? @lexikos probably has a grander vision for where the parser development is headed
Well, I didn't ask questions after that update and simply used regex to change all my scripts at once and be done with it. yet I'm curious what caused that change?