[Bro-Dev] v += e (Re: set and vector operators)
vern at corelight.com
Thu Jun 21 14:12:08 PDT 2018
> > (3) Implement "v += e" to mean "append the element e to the vector v".
> Do we want to do this now, or should we potentially wait a release-cycle
> with it (to prevent the situation where v + e and v+= e means something
Turns out that "v += e" currently generates an error ("requires two
arithmetic or two string operands"), so it seems safe to me to introduce
it as append-to-vector concurrent with deprecating "v + e" (which from the
discussion on the list it seems likely current has little or no use).
BTW, "v1 += v2" likewise generates an error, even when "v1 + v2" works.
More information about the bro-dev