Open nobiit opened 3 weeks ago
Not sure whether I like it or not, but you have no tests, and no documentation
Meson objects are immutable once created, so any method like this would have to return a modified array without changing the original array. This is what += does, it’s a actually a short hand for x = x + y
As noted above, the method should be called something like .without()
and it should return a new array. But even then this is problematic, because you can mix strings and file objects things get very complicated. If you build an array with a file foo.c
in it in one directory and then remove foo.c
in a different directory that also has a foo.c
file, what should happen?
In order to add this it would require a fairly hefty real world use case. We never add functionality "just in case someone might need it later".