[Cuis] isXXX methods? (was Re: 4 additions to core?)

Phil (list) pbpublist at gmail.com
Wed May 13 19:34:03 CDT 2015


On Wed, 2015-05-13 at 19:54 +0000, H. Hirzel wrote:
> I do not fully get you Juan.
> 
> Could you provide a bit more context about what you want to do with the
> 
>       isXXX
> 
> methods?
> 

They've been mostly replaced by #is:.  There have been at least a couple
of discussions about this over the last few years on the list.  I think
it's a nice improvement and streamlines things.

> HH
> 
> On 5/13/15, Juan Vuletich <juan at jvuletich.org> wrote:
> > There's always more cleanup to be done!
> >
> > #isHeap is easy to remove. But #isArray might be a bit riskier. These
> > isXXX methods that simply answer a constant are extremely fast, and
> > never cause context switch. I guess this is important for #isFloat,
> > #isInteger, #isFraction, although the default that answers false could
> > be defined in Number, and not Object... And I'm not really sure for
> > #isArray.
> >
> > As usual, if you feel like digging into this, contributions are welcome.
> >
> > Cheers,
> > Juan Vuletich
> >
> > On 5/12/2015 12:18 PM, David Graham wrote:
> >> I agree with this. :)  A while back I noticed that some collections
> >> have isXXX (like isArray and isHeap), while others don't.  Is this
> >> just a matter of cleanup or is there some logic I'm missing?
> >>
> >> On 5/10/2015 1:31 PM, Juan Vuletich wrote:
> >>>
> >>>
> >>> - Character >> isCharacter
> >>> I guess we'd also need to add it to Object for this to make sense.
> >>> But we all agree that calling isXXX methods is not nice style, right?
> >>>
> >>
> >>
> >> _______________________________________________
> >> Cuis mailing list
> >> Cuis at jvuletich.org
> >> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
> >
> >
> 
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org






More information about the Cuis mailing list