Honestly I think not supporting empty literals is just as big a limitation
as not supporting single quotes, so IMO we'd just be trading one limitation
for another. i.e. if someone were to need empty literals, the things they
would have to do to use them are the same things they'd have to do to
supp
I'm OK with Sebb's solution [1]
Any further thoughts here?
Gary
[1] https://github.com/apache/commons-lang/pull/1227
On 2024/05/29 13:37:40 Mike Drob wrote:
> On Wed, May 29, 2024 at 8:17 AM Gary Gregory wrote:
>
> > (Sorry for the top post, phone)
> >
> > A case I can imagine an empty '' occu
On Wed, May 29, 2024 at 8:17 AM Gary Gregory wrote:
> (Sorry for the top post, phone)
>
> A case I can imagine an empty '' occurring is when the format string itself
> is built programmatically for example a '%s' or using string concatenate of
> a variable that holds a string where that string ca
(Sorry for the top post, phone)
A case I can imagine an empty '' occurring is when the format string itself
is built programmatically for example a '%s' or using string concatenate of
a variable that holds a string where that string can be empty or an "s" to
mark a plural or a quote for example.
On Sun, 26 May 2024 at 23:37, sebb wrote:
>
> On Sun, 26 May 2024 at 08:25, Laertes Moustakas wrote:
> >
> > Hello Gary,
> >
> > Thank you for your response. Some of the new assertions indeed fail when
> > interpreting the duplicate single quote as an escaped quote instead of a
> > closing and
On Sun, 26 May 2024 at 08:25, Laertes Moustakas wrote:
>
> Hello Gary,
>
> Thank you for your response. Some of the new assertions indeed fail when
> interpreting the duplicate single quote as an escaped quote instead of a
> closing and opening quote. In particular, "y' ''years' M 'months'" is
Hello Gary,
Thank you for your response. Some of the new assertions indeed fail when
interpreting the duplicate single quote as an escaped quote instead of a
closing and opening quote. In particular, "y' ''years' M 'months'" is
interpreted as "4 'years 0 months" while the expected text lacks th
Hello Laertes,
Thank you for your interest in improving Apache Commons Lang :-)
Do you foresee any compatibility issues for existing call sites and
format strings?
For example, can you make your use cases work and still support:
https://github.com/apache/commons-lang/blob/d861f1b2116a41a45949d1