<div dir="ltr"><div class="gmail_default" style="font-family:monospace;font-size:large">Juan</div><div class="gmail_default" style="font-family:monospace;font-size:large">Thanks for all clarifications, I remember that in the Cuis talk, there was an intense debate over math symbols and Unicode if I'm not mistaken...</div><div class="gmail_default" style="font-family:monospace;font-size:large">I will read the paper.</div><div class="gmail_default" style="font-family:monospace;font-size:large">Thanks again</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b><font size="2">Ignacio Sniechowski</font></b><b><br></b></div><div><br></div><div><b><br></b></div><div><br></div><div><b></b></div><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><b></b><br></div><b><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><br></b><b><br></b><b><br></b><div><br><br><div style="text-align:left"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 22, 2023 at 4:10 PM Juan Vuletich via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</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"><u></u>
<div bgcolor="#ffffff">
On 2/22/2023 12:39 PM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote type="cite">
<p><font size="4">Oops too late I already update the book (html
updated, no the pdf build)</font></p>
<p><font size="4"><a href="https://cuis-smalltalk.github.io/TheCuisBook/Message-to-string-entities.html#index-Unicode" target="_blank">https://cuis-smalltalk.github.io/TheCuisBook/Message-to-string-entities.html#index-Unicode</a></font></p>
<p><font size="4"><a href="https://cuis-smalltalk.github.io/TheCuisBook/String-_002d_002d-a-particular-collection.html#index-Unicode-2" target="_blank">https://cuis-smalltalk.github.io/TheCuisBook/String-_002d_002d-a-particular-collection.html#index-Unicode-2</a><br>
</font></p>
<p><br>
</p>
<div>Le 22/02/2023 à 16:00, Hernán
Wilkinson via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite">
<div>If my memory does not fail me I remember talking with Juan
about this behavior and the reason for copy to return the same
object is because UnicodeString are immutable... but let's
wait for Juan to confirm that.</div>
<div><br>
</div>
</blockquote>
<p>Yes, I remember that too.<br>
</p>
<pre cols="72">--
GNU Dr. Geo
<a href="http://drgeo.eu" target="_blank">http://drgeo.eu</a>
<a href="http://blog.drgeo.eu" target="_blank">http://blog.drgeo.eu</a></pre>
</blockquote>
<br>
Hi Folks,<br>
<br>
A few clarifications (some / most you all already figured out)<br>
<br>
- String literals containing only ASCII characters are instances of
String<br>
- String literals containing any non-ASCII character are instances
of UnicodeString<br>
- Both are correctly indexed. #at: works as expected. But the same
UnicodeString can be encoded in various forms. See #asNFC, #asNFD,
UnicodeString>>#=. This is just the way Unicode works.<br>
- String and UnicodeString are interchangeable and interoperable.
Conversions are done automatically. You don't need to care, except
for:<br>
- UnicodeString are immutable<br>
<br>
An important note is that we can make UnicodeString modifiable via
#at:put: if we want. In most systems Unicode strings can not be
modified. But in Cuis we can compute and store the new 'bytes', nil
'hash' and we are done. On one hand, the system works well with
immutable strings. It is not really needed. On the other hand,
making them modifiable improves compatibility with older code and
tutorials, and other dialects. It is also a good example of
Smalltalk "magic".<br>
<br>
Hilaire, after we make our minds wrt immutable or mutable
UnicodeStrings, I'd like to rewrite those sections on the book. In
last year's Smalltalks conference at Buenos Aires, I presented a
short paper on Unicode in Cuis:
<a href="https://openreview.net/pdf?id=c93fukpVINA" target="_blank">https://openreview.net/pdf?id=c93fukpVINA</a> . The main point I make is
that most programmers usually don't need to know or care about the
encoding used for Strings. They should only care about their
behavior. So, I'd like to rewrite those parts in the same spirit.<br>
<br>
Thanks,<br>
<pre cols="72">--
Juan Vuletich
<a href="http://cuis.st" target="_blank">cuis.st</a>
<a href="http://github.com/jvuletich" target="_blank">github.com/jvuletich</a>
<a href="http://researchgate.net/profile/Juan-Vuletich" target="_blank">researchgate.net/profile/Juan-Vuletich</a>
<a href="http://independent.academia.edu/JuanVuletich" target="_blank">independent.academia.edu/JuanVuletich</a>
<a href="http://patents.justia.com/inventor/juan-manuel-vuletich" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a>
<a href="http://linkedin.com/in/juan-vuletich-75611b3" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a>
<a href="http://twitter.com/JuanVuletich" target="_blank">twitter.com/JuanVuletich</a> '</pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div>