On 04.07.20 01:05, Phil Blundell wrote:
On Fri, Jul 03, 2020 at 08:44:03PM +0200, Konrad Weihmann wrote:
- " ??= " for defaults
- minimize the usage of 1st stage operator "+=", "=+", ".=", "=." and
replace them by "_append" and "_prepend" (which would eliminate the need for
.= and =. btw)
I agree that there is a bit of a usability problem here, but I think this
proposal is going in the wrong direction. It's really the _append/_prepend
operators that have the uninituitive semantics and that I think should be
avoided. In particular, it is very difficult to "kill" an _append once
it's been defined.
Absolutely agree, I just see that it is harder to get rid of the
append/prepend mechanism than the other.
How much of the problem is really a tools issue, and how much is just
something that can be fixed with documentation/convention, is an interesting
question.
And I think it's not a tool issue per se - maybe it can be fixed by
proper documentation - I'm not sure as most of the corner cases are far
from being intuitive - so step one for me is to make them visible to the
user.
Part of the problem, at least, seems to stem from different opinions about
what variable settings are "required" in any given situation and what the
division of responsibility between layers, recipes, users and DISTROs
ought to be. I think that probably wants disentangling before we look
too closely at the exact syntax and semantics of our assignments.
p.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1104):
https://lists.openembedded.org/g/openembedded-architecture/message/1104
Mute This Topic: https://lists.openembedded.org/mt/75280300/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-architecture/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-