[Bro-Dev] v += e (Re: set and vector operators)
Vern Paxson
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
> different).
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.
Vern
More information about the bro-dev
mailing list