is there an actual defensible usage for combining "_append" and "+="?
i've grumbled about this before -- the *apparent* redundancy in
combining the "_append" and "+=" constructs -- but someone recently suggested there's a use case for that that weirds me out if true.
given that "_append" defers appending, and that "+=" inserts a
space, the argument was that combining them both defers appending *and* inserts a space when appending is finally done.
*blink*.
seriously? is that what that combination is being used for?
rday
p.s. i don't even want to think what happens if you combine "_append" and, say, "=+". or some other operator.
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 5 lines · Robert P. J. Day
i've grumbled about this before -- the *apparent* redundancy in
combining the "_append" and "+=" constructs -- but someone recently suggested there's a use case for that that weirds me out if true.
Quoted 7 lines
given that "
_append" defers appending, and that "+=" inserts a
space, the argument was that combining them both defers appending *and* inserts a space when appending is finally done.*blink*.
seriously? is that what that combination is being used for?
I am not sure if its used consciously most of time, I ask developers why they used it
they just wanted to add to an existing variable and += did not work.
the construct is an unintended side effect of bitbake syntax
Quoted 21 lines
rday
p.s. i don't even want to think what happens if you combine "
_append" and, say, "=+". or some other operator.--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.caTwitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday========================================================================
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 13 lines · Khem Raj
Quoted 11 lines · Robert P. J. Day
i've grumbled about this before -- the *apparent* redundancy in
combining the "_append" and "+=" constructs -- but someone recently suggested there's a use case for that that weirds me out if true.given that "
_append" defers appending, and that "+=" inserts a
space, the argument was that combining them both defers appending *and* inserts a space when appending is finally done.*blink*.
Quoted 7 lines
Quoted 1 line
seriously? is that what that combination is being used for?
I am not sure if its used consciously most of time, I ask developers why they used it they just wanted to add to an existing variable and += did not work.
the construct is an unintended side effect of bitbake syntax
but the question remains, are people using that weird combination
*deliberately*, if it in fact gives you the combination of the two effects? as in, are people writing:
VAR_append += "string"
when it would be equivalent to write
VAR_append = " string"
simply because they're too lazy to add the leading space?
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================