Re: Re: [LANG] Support single quotes in DurationFormatUtils methods' formats

2024-05-31 Thread Daniel Watson
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

Re: commons.text.CaseUtils

2024-04-11 Thread Daniel Watson
Stephan, On that note, I worked on the initial implementation for PR 450, and had to pause for work but am planning to resume soon, but definitely contribute and/or provide any thoughts as it's definitely a big change from the current CaseUtils. Regards, Dan On Wed, Apr 10, 2024, 9:20 PM Stephan

Re: [LANG] EqualsBuilder#reflectionEquals feature brainstorming

2024-03-07 Thread Daniel Watson
One comment about the collection comparison... For any collection that actually implements List, equality should *include* order, not attempt to ignore it, right? The contract of a list is that the order is consistent, and two lists with the same items in different order, should not be considered

[Commons-Lang] EventListenerSupport fireQuietly method

2023-08-16 Thread Daniel Watson
Does it make sense for the EventListenerSupport class to have a separate method to fire an event "quietly" i.e. without throwing exceptions to the caller? I've needed to implement it locally to guarantee that all listeners receive the event, whereas the standard fire() terminates on the first exce

Re: [commons-text] Additional CaseUtils type functionality that can handle snake, kebab, camel, pascal, and others

2023-08-15 Thread Daniel Watson
Fri, Aug 11, 2023 at 11:31 AM Daniel Watson wrote: > If no instance of Thing1Case can be reconfigured, then that holds true, > right? The fact that it extends something like DelimitedCase doesn't break > the spec I wouldn't think? > > > > On Fri, Aug 11, 2023,

Re: [commons-text] Additional CaseUtils type functionality that can handle snake, kebab, camel, pascal, and others

2023-08-11 Thread Daniel Watson
and one thing only... > hence this specification exercise 😉 > > Gary > > On Wed, Aug 9, 2023, 9:52 PM Daniel Watson wrote: > > > I would think it's possible to hide that "configuration" from the user > such > > that the implementation can only be r

Re: [commons-lang] Util function in NumberUtils to count significant figures in a numeric string

2023-08-11 Thread Daniel Watson
.org/en/jsr/detail?id=363 > > Gary > > On Thu, Aug 10, 2023, 10:56 AM Daniel Watson wrote: > > > I brought this up in commons-math and it was determined that that > probably > > wasn't a good place for it, as that lib focuses on computational > functions. > &

[commons-lang] Util function in NumberUtils to count significant figures in a numeric string

2023-08-10 Thread Daniel Watson
I brought this up in commons-math and it was determined that that probably wasn't a good place for it, as that lib focuses on computational functions. It was also mentioned that commons-numbers was not a great place for the static util method either. Essentially the need for this relates to scient

Re: [Meta] gitlab error responses to mailing list

2023-08-10 Thread Daniel Watson
I had my pitchfork ready, but I suppose a ban is more civil. Thanks! On Thu, Aug 10, 2023 at 9:41 AM Mark Thomas wrote: > Got them. > > The idiot concerned has won themselves a lifetime subscription to the > deny list for commons-dev and the handful of other ASF lists they are > subscribed to.

Re: [commons-math] function or Number class to count/track number of significant figures

2023-08-10 Thread Daniel Watson
r the discussion! On Wed, Aug 9, 2023 at 3:00 PM Daniel Watson wrote: > I believe the convention is to take the *least* precise term and apply > that precision (here "precision" != "sigfigs" - Ive been using both terms > to mean sigfigs, but for these purposes prec

Re: [commons-text] Additional CaseUtils type functionality that can handle snake, kebab, camel, pascal, and others

2023-08-09 Thread Daniel Watson
r to enable it? On Wed, Aug 9, 2023, 9:14 PM Elliotte Rusty Harold wrote: > On Wed, Aug 9, 2023 at 11:36 PM Daniel Watson > wrote: > > > > Meant to add... > > > > The reason I would favor exceptions is that the underlying implementation > > can be ea

Re: [commons-text] Additional CaseUtils type functionality that can handle snake, kebab, camel, pascal, and others

2023-08-09 Thread Daniel Watson
gt; MySnakeCase(){ > super(). > this.alphanuneric = false; > } > } > > > On Wed, Aug 9, 2023, 7:29 PM Daniel Watson wrote: > >> Currently I'm planning a set of exceptions that are thrown for various >> reasons. I created multiple classes to allow for clear

Re: [commons-text] Additional CaseUtils type functionality that can handle snake, kebab, camel, pascal, and others

2023-08-09 Thread Daniel Watson
hen a token contains an unpermitted character? >> >> On Wed, Aug 9, 2023 at 8:30 PM Daniel Watson >> wrote: >> > >> > Here's my stab at a spec. Wanted to clarify some parts of the Case >> > interface first before jumping into the implementations. Wonde

Re: [commons-text] Additional CaseUtils type functionality that can handle snake, kebab, camel, pascal, and others

2023-08-09 Thread Daniel Watson
#x27;m not looking at the code right this moment but I'm fairly certain about the need for the above 3. On Wed, Aug 9, 2023, 6:08 PM Elliotte Rusty Harold wrote: > What happens when a token contains an unpermitted character? > > On Wed, Aug 9, 2023 at 8:30 PM Daniel Watson wrote: &

Re: [commons-text] Additional CaseUtils type functionality that can handle snake, kebab, camel, pascal, and others

2023-08-09 Thread Daniel Watson
l string) must be a lowercase alpha character (rather than the uppercase requirement of PascalCase). All other restrictions of PascalCase apply. On Tue, Aug 8, 2023 at 8:55 PM Daniel Watson wrote: > Kebab case is extremely common for web identifiers, eg html element ids, > classes, attribu

Re: [commons-math] function or Number class to count/track number of significant figures

2023-08-09 Thread Daniel Watson
d with a few more examples, but I think that's the logic at a high level. Dan On Wed, Aug 9, 2023 at 2:08 PM Alex Herbert wrote: > On Wed, 9 Aug 2023 at 17:13, Daniel Watson wrote: > > > BigSigFig result = new BigSigFig("1.1").multiply(new BigSigFig("2"))

Re: [commons-math] function or Number class to count/track number of significant figures

2023-08-09 Thread Daniel Watson
The wrinkle is the tracking aspect, where we need to dynamically reduce the sigfigs based on other operations. That's where a wrapper class I think comes in handy. Dan On Wed, Aug 9, 2023 at 11:23 AM Alex Herbert wrote: > On Wed, 9 Aug 2023 at 15:43, Daniel Watson wrote: > > &g

Re: [commons-math] function or Number class to count/track number of significant figures

2023-08-09 Thread Daniel Watson
to derive them from pure numbers doesn't apply. Hope that answers more questions than it creates! Dan On Wed, Aug 9, 2023 at 8:48 AM Alex Herbert wrote: > Hi, > > On Wed, 9 Aug 2023 at 12:27, Daniel Watson wrote: > > > This feature is necessary when working with scientif

[commons-math] function or Number class to count/track number of significant figures

2023-08-09 Thread Daniel Watson
I noticed there is not (or I could not find) a function within commons-math to count the number of significant figures in a number string. I wrote a function to do it and want to make sure I'm not missing something within commons-math before submitting a PR. This feature is necessary when working

Re: [commons-text] Additional CaseUtils type functionality that can handle snake, kebab, camel, pascal, and others

2023-08-08 Thread Daniel Watson
; > I've never heard of kebab cases before. Is that a common name? I'd > also like to rename Pascal case. How many programmers under 40 have > even heard of Pascal, much less are familiar with its case > conventions? > > Long story short - a PR is premature until ther

[commons-text] Additional CaseUtils type functionality that can handle snake, kebab, camel, pascal, and others

2023-08-08 Thread Daniel Watson
I have a bit of code that adds the ability to parse and format strings into various case patterns. Wanted to check if it's of worth and in-scope for commons-text... Its a bit broader than the existing CaseUtils.toCamelCase(...) method. Rather than simply formatting tokens into the case, this API a

[Meta] gitlab error responses to mailing list

2023-08-06 Thread Daniel Watson
Does anyone else get gitlab error messages in response to emails sent to this list (coming from supp...@cons3rt.com) ? The messages have no information as to the cause or resolution. Can't find any documentation about it on mailing list page.

Re: [commons-lang] Comments on new FunctionUtils / nested lambda feature

2023-08-06 Thread Daniel Watson
> > >>>> Worth adding adding function(Function)? Seems low cost to add it > >>>> FailableFunction. > >>>> > >>>> Gary > >>>> > >>>> On Fri, Aug 4, 2023, 2:04 PM Rob Spoor wrote: > >>>> > >

Re: [commons-lang] Comments on new FunctionUtils / nested lambda feature

2023-08-05 Thread Daniel Watson
Name); > >> > >> You want a default value? Almost just as easy: > >> > >> someFrameworkThing.setProperty(function(ParentBean::getChild) > >> .andThen(ChildBean::getName) > >> .andThen(Optional::ofNullable) > >

Re: [commons-lang] Comments on new FunctionUtils / nested lambda feature

2023-08-04 Thread Daniel Watson
etName) > .andThen(Optional::ofNullable) > .andThen(o -> o.orElse("defaultName")); > > > On 04/08/2023 16:04, Daniel Watson wrote: > > Asking for comments and thoughts on a potential new feature. Already > > developed in a commons-li

[commons-lang] Comments on new FunctionUtils / nested lambda feature

2023-08-04 Thread Daniel Watson
Asking for comments and thoughts on a potential new feature. Already developed in a commons-like style, but dont want to submit PR without discussion as it may be considered out of scope or too use case specific. Justification and details... I've run into a scenario a few times where nested lamba