On Thu, Oct 21, 2021 at 05:12:26PM +0200, Wolfgang Denk wrote:
> Dear Marek,
> 
> In message <20211021152831.15524883@thinkpad> you wrote:
> >
> >
> > > I think =+ will confuse far more people than + as last character of var
> 
> I still fail to see why '=+' could be confusing if properly
> documented to be the append operator.
> 
> I mean, it is not a new invention of mine.
> 
> OpenEmbedded / Yocto uses '=+' a lot, like in
> 
>       meta/recipes-kernel/dtc/dtc.inc:
> 
>       PACKAGES =+ "${PN}-misc"
> 
> Actually they use both '+=' and '=+', like
> 
>       RESULT+=${ERRORS}

The OE example is exactly why I want to avoid =+.  You cannot
interchangeably use += and =+ as they evaluate differently.  See
https://www.yoctoproject.org/docs/3.1/bitbake-user-manual/bitbake-user-manual.html#appending-and-prepending
and that =+ there is the opposite of what we want.  So, more confusion.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to