<div dir="ltr"><div dir="ltr">Apologies for not replying earlier on this, I've been a little distracted with other items.</div><div dir="ltr"><br></div><div>I'm still finding my way around Cuis so thanks for being patient and providing pointers.</div><div><br></div><div>Regards</div><div><br></div><div>Barry</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 9, 2024 at 1:15 PM Juan Vuletich <<a href="mailto:juan@cuis.st" target="_blank">juan@cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Todd,<br>
<br>
On 2/9/2024 12:49 AM, Todd Blanchard via Cuis-dev wrote:<br>
> I apologize, I meant no disrespect. Apparently my writing style is overly direct. Lifelong problem.<br>
<br>
Thanks for this. It is very much appreciated.<br>
<br>
> I kind of fundamentally object to explicit tests of class because it makes for brittle code. We had one kind of String class and there was code that tested to see if an instance was of class String. Then we added another kind of String class and the code stopped working in some cases. To me, that is brittle.<br>
<br>
Indeed!<br>
<br>
I had already tweaked Barry's code when reviewing it, to send #isString <br>
instead of explicit class tests. I usually do that kind of thing. Most <br>
often, silently. The original poster can check how their code was <br>
integrated, and seeing the difference may be useful.<br>
<br>
> If we instead rely on polymorphic test methods like isString, the client code is more robust.<br>
><br>
> Attached is how I would write evalStrings using isSymbol, isString, and isArray.<br>
<br>
Your implementation is much nicer, thank you! I'm leaving out the unused <br>
'EvalLiterals' class variable, though, as it looks like an unintended slip.<br>
<br>
It is now at GitHub.<br>
<br>
Cheers,<br>
<br>
-- <br>
Juan Vuletich<br>
<a href="http://cuis.st" rel="noreferrer" target="_blank">cuis.st</a><br>
<a href="http://github.com/jvuletich" rel="noreferrer" target="_blank">github.com/jvuletich</a><br>
<a href="http://researchgate.net/profile/Juan-Vuletich" rel="noreferrer" target="_blank">researchgate.net/profile/Juan-Vuletich</a><br>
<a href="http://independent.academia.edu/JuanVuletich" rel="noreferrer" target="_blank">independent.academia.edu/JuanVuletich</a><br>
<a href="http://patents.justia.com/inventor/juan-manuel-vuletich" rel="noreferrer" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a><br>
<a href="http://linkedin.com/in/juan-vuletich-75611b3" rel="noreferrer" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a><br>
<a href="http://twitter.com/JuanVuletich" rel="noreferrer" target="_blank">twitter.com/JuanVuletich</a><br>
<br>
</blockquote></div></div>