I wasn't aware ur reply is on the 4th page so I kept adding stuff to my prev. post. Great explanation
That killer-picture and ur explanation should be put into the documentation.
For now, for json.dump
I just add an additional loop calling .base.ownmethods
. U defeated my #34
, the only grumble left is obj.ownmethods
to be extended in the future to additionally enumerate .base
for methods so as to mirror (emulate) obj.ownprops
mode. Updated #34
in OP (hid complaints under a spoiler).
In the past, I used the following syntax in AHK V2-103 to exploit fat-arrow function style with methods (=>
wasn't supported for methods back then):
and used some __init
method to do other [instanced] methods initialization and that way props and methods (essentially, pointers to functions) were following the same suit.
40. in the future if more data structures are added, id want them to enumerate in a natural way that makes sense for them, not to satisfy an arbitrary constraint.
From that point of view, it makes sense. I feel the majority is against it. My decisiveness towards for-loop
predictability is swayed by the arguments. Yet the list is my point of view, my wishlist - so for now I'll keep mine and add ur reasoning to the #40 with red color
for others to judge.
46. i thought interpreter-altering directives were off the table. a better solution is ripping the bandaid off
Some ppl r against surgery
well, we have added #required
preprocessor directive and there will be others, and who knows, it might end up with a full-fledged preprocessor being added in the future, so having #syntax strict
for now could suit as a transition phase helping ppl get used to no-commands mode.
now that i think about it, if adding extra special operators(eg * ^ & out) would simplify the implementation/provide more robust error detection, go for it.
at the very least it would serve to better document outparam usage
exactly. Also it helps to memorize parameters order. and for ppl who don't care -> simply initialize such vars to suppress warnings. And later on, if it got accepted by the majority, using out
might become mandatory.