<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        
                                        
                                            
                                        
                                        
                                        > <span style="font-size: 10pt">And canUnderstand: ?  Or is that being too picky?</span><div><span style="font-size: 10pt"><br></span></div><div><span style="font-size: 10pt">Ah, right. On the class level, it would be like Levente inferred from my suggestion. I only thought of #respondsTo: to answer "true" only for the simple setter/getters that have keys present in the actual dictionary instance. Hmmm.....</span></div><div><span style="font-size: 10pt"><br></span></div><div><span style="font-size: 10pt">I would like to keep the JSON library as simple as possible. Wer are just talking about syntactic sugar here, right?</span></div><div><span style="font-size: 10pt"><br></span></div><div><span style="font-size: 10pt">Best,</span></div><div><span style="font-size: 10pt">Marcel</span></div><div class="mb_sig"></div>
                                        
                                        <blockquote class="history_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 09.11.2020 21:08:14 schrieb Eliot Miranda <eliot.miranda@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">
<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size: 14pt"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 8, 2020 at 11:04 PM Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de" target="_blank">marcel.taeumel@hpi.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left-width: 1px;border-left-style: solid;border-left-color: rgb(204,204,204);padding-left: 1ex;min-width: 500px"><div id="m_8296749452181339386gmail-m_-7958462234810674208__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0)">
                                        
                                        
                                            
                                        
                                        
                                        Hi Levente.<div><br></div><div>Sounds right. If an object can answer to some extra messages via #doesNotUnderstand:, one should also override #respondsTo:. It is like #= and #hash.</div></div></blockquote><div><br></div><div class="gmail_default" style="font-size: 14pt">And canUnderstand: ?  Or is that being too picky?</div><div class="gmail_default" style="font-size: 14pt"><br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left-width: 1px;border-left-style: solid;border-left-color: rgb(204,204,204);padding-left: 1ex;min-width: 500px"><div id="m_8296749452181339386gmail-m_-7958462234810674208__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0)"><div><br></div><div>I did not know about #dictionaryClass:. That's a powerful hook.</div><div><br></div><div>Best,</div><div>Marcel</div><div></div>
                                        
                                        <blockquote 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:rgb(170,170,170);margin-top:10px">Am 09.11.2020 03:07:54 schrieb Levente Uzonyi <<a href="mailto:leves@caesar.elte.hu" target="_blank">leves@caesar.elte.hu</a>>:</p><div style="font-family:Arial,Helvetica,sans-serif">Hi Christoph,<br><br>On Sun, 8 Nov 2020, Christoph Thiede wrote:<br><br>> Hi Levente,<br>><br>> would you mind to merge JSON-ct.41 (#respondsTo:) as well? This would be<br>> great because I depend on this functionality in another project and<br>> currently require your JSON fork in my baseline. :-)<br><br>I cannot merge it because that would bring back long removed methods, and<br>MC wouldn't allow me to reject those.<br>But I can add the changes manually.<br>If I'm not mistaken, it's just a single method JsonObject >> #respondsTo:.<br><br>What is the purpose of that method?<br>I'm asking because it has got no comment, so I'm not sure its <br>implementation is correct.<br>For example, should<br><br>  JsonObject new respondsTo: #foo:<br><br>return false?<br>What should the following return?<br><br>        JsonObject new<br>                foo: 1;<br>               respondsTo: #foo:<br><br>Another question is whether it is generally useful or not?<br>If it's not, you can still have the desired behavior by creating a <br>subclass. E.g.:<br><br>JsonObject subclass: #PseudoObject<br>   instanceVariableNames: ''<br>     classVariableNames: ''<br>        poolDictionaries: ''<br>  category: 'PseudoObject'<br><br><br>PseudoObject >> respondsTo: aSymbol<br><br>     ^ (super respondsTo: aSymbol)<br>                 or: [self includesKey: aSymbol]<br><br><br>(Json new<br>        dictionaryClass: PseudoObject;<br>        readFrom: '{"foo": 42}' readStream)<br>         respondsTo: #foo<br>"==> true"<br><br><br>Levente<br><br>><br>> Best,<br>> Christoph<br>><br>><br>><br>> --<br>> Sent from: <a href="http://forum.world.st/Squeak-Dev-f45488.html" target="_blank">http://forum.world.st/Squeak-Dev-f45488.html</a><br><br></div></blockquote></div><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><span style="font-size: 10pt;border-collapse: separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>
</div></blockquote></div>