I am not sure if thoughts similar to mine were already present in the
thread, but I am not sure there is any particular value in adding any
replacement methods for deprecated ones.
To me it seems like path.toString.{starts,ends}With provides endlessly more
clarity on what is going on, besides maybe pathString{ends,starts}With,
but this name seems clumsy, in some way resembling some denormalized column
name in db in a way that it traverses multiple mental indirections to
explain clearly enough what it does
So, as I think, unless there is a substantial optimization to offer from
merging this two operations, i would prefer just suggesting to use
toString().{starts,ends}With directly
Best regards
On Wed, Jan 7, 2026 at 11:45 PM Brian Burkhalter <
[email protected]> wrote:
> In the list below I omitted adding Path.{ends,starts}WithString(String)
> which is different from item 3 in the list.
>
> Brian
>
> On Jan 7, 2026, at 12:34 PM, Brian Burkhalter <[email protected]>
> wrote:
>
> Among doubtlessly many others, one alternative is
>
> 1. Leave Path.{ends,starts}With(Path) unchanged
> 2. Deprecate Path.{ends,starts}With(String)
> 3. Add Path.pathString{ends,starts}With(String)
>
> where "pathstring" in effect implies the value of Path.toString().
>
>
>