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

H. Hirzel hannes.hirzel at gmail.com
Wed May 13 14:54:47 CDT 2015


I do not fully get you Juan.

Could you provide a bit more context about what you want to do with the

      isXXX

methods?

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
>
>




More information about the Cuis mailing list