<div dir="ltr"><div dir="ltr">Am Mo., 18. Juli 2022 um 09:11 Uhr schrieb Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</a>>:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id="gmail-m_6442298334845997788__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);text-align:left" dir="ltr">
                                        <div>Or maybe it is just a single operation that needs to be refined in String to bypass that #string lookup.<br></div><div><br></div></div></blockquote><div><br></div><div>One thing that would make the introduction of a common superclass easier is that Text already agrees with String that do: enumerates the characters and at: accesses a single character, not a combination of characters and attributes. So as long as a method only needs such basic SequenceableCollection features, one can simply pull it up. Whether that still preserves enough for the workings of Text, is another question. Texts would turn to Strings in several of the implementations of String methods if these were pulled up. Other methods like substring replacement are already implemented suitably in both String and Text, so one can also rely on those in methods that would be pulled up.</div><div><br></div><div><br></div></div></div>