[MacPorts] #53089: option-contains
MacPorts
noreply at macports.org
Wed May 31 19:14:05 UTC 2023
#53089: option-contains
--------------------------+----------------------
Reporter: RJVB | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Resolution: | Keywords: haspatch
Port: |
--------------------------+----------------------
Comment (by RJVB):
Replying to [comment:1 ryandesign]:
> Does the [https://wiki.tcl-lang.org/page/In in operator] satisfy this
need?
...
> The usual way we handle this however is just to delete before appending.
I guess it does because I had completely forgotten about this ticket (I'd
noticed the use of a "prophylactic" `-delete` several times in recent
months and that also didn't refresh my memory). Note however that the
`-delete` trick isn't relevant for the example use case in my OP.
Still, looking at this with fresh eyes it strikes me that the addition
could be useful of other option-vars too and is a bit more readable (OOP
fashion) than the pure Tcl construct.
It remains just a suggestion of course.
--
Ticket URL: <https://trac.macports.org/ticket/53089#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list