<div dir="auto"><div>Moreover, nil isNill (typo) would answer false instead of signalling an error.<br></div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</a>> schrieb am Do., 9. Mai 2019, 08:38:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id="m_2287685337793467422__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:#000000">
                                        
                                        
                                            
                                        
                                        
                                        Hi Subbu,<div><br></div><div>here, regular message sends are more flexible than using #isKindOf: (or #includesBehavior:). Any class in the hierarchy can choose to answer to "is*" messages. That's not that easy with #isKindOf:, which depends on the subclass structure, which is hard to "fake" for a specific instance. I suppose that overriding #isKindOf: would be possible but troublesome...</div><div><br></div><div>Here is more on this topic:</div><div><a href="http://forum.world.st/isKindOf-in-Morphic-code-tp4904890p4904965.html" target="_blank" rel="noreferrer">http://forum.world.st/isKindOf-in-Morphic-code-tp4904890p4904965.html</a></div><div><a href="http://forum.world.st/isKindOf-in-Morphic-code-tp4904890p4904935.html" target="_blank" rel="noreferrer">http://forum.world.st/isKindOf-in-Morphic-code-tp4904890p4904935.html</a></div><div><br></div><div>Best,</div><div>MarcelĀ </div><div class="m_2287685337793467422mb_sig"></div>
                                        
                                        <blockquote class="m_2287685337793467422history_container" type="cite" style="border-left-style:solid;border-width:1px;margin-top:20px;margin-left:0px;padding-left:10px;min-width:500px">
                        <p style="color:#aaaaaa;margin-top:10px">Am 08.05.2019 18:10:52 schrieb K K Subbu <<a href="mailto:kksubbu.ml@gmail.com" target="_blank" rel="noreferrer">kksubbu.ml@gmail.com</a>>:</p><div style="font-family:Arial,Helvetica,sans-serif">This can lead to an explosion in methods. How about catching the pattern 
<br>in DNU and returning true for isObject and false for any selector 
<br>matching 'is[A-Z]*' or the more specific 'is<u></u>'?
<br>
<br>Regards .. Subbu
<br>
<br>On 08/05/19 11:27 AM, Marcel Taeumel wrote:
<br>> +1 for consistency :-)
<br>> 
<br>> We should add more tests for isNumber, isCollection, isBoolean ... to 
<br>> document the intended use.
<br>> 
<br>> Best,
<br>> Marcel
<br>>>
<br>>> Am 08.05.2019 01:36:16 schrieb <a href="mailto:commits@source.squeak.org" target="_blank" rel="noreferrer">commits@source.squeak.org</a> 
<br>>> <u></u>:
<br>>>
<br>>> Chris Muller uploaded a new version of Kernel to project The Inbox:
<br>>> <a href="http://source.squeak.org/inbox/Kernel-cmm.1228.mcz" target="_blank" rel="noreferrer">http://source.squeak.org/inbox/Kernel-cmm.1228.mcz</a>
<br>>>
<br>>> ==================== Summary ====================
<br>>>
<br>>> Name: Kernel-cmm.1228
<br>>> Author: cmm
<br>>> Time: 7 May 2019, 6:36:01.955169 pm
<br>>> UUID: 2fad2a41-3aec-4e22-b9e8-cce50f7f6808
<br>>> Ancestors: Kernel-nice.1227
<br>>>
<br>>> Allow identification of instances of Boolean via #isBoolean.
<br>>>
<br>>> =============== Diff against Kernel-nice.1227 ===============
<br>>>
<br>>> Item was added:
<br>>> + ----- Method: Boolean>>isBoolean (in category 'testing') -----
<br>>> + isBoolean
<br>>> + ^ true!
<br>>>
<br>>> Item was added:
<br>>> + ----- Method: Object>>isBoolean (in category 'testing') -----
<br>>> + isBoolean
<br>>> + ^ false!
<br>>>
<br>>>
<br>> 
<br>> 
<br>
<br><u></u><u></u></div></blockquote></div><br>
</blockquote></div></div></div>