<div dir="auto">Cool! </div><div dir="auto">Looks like the approach there is to not have a character type, but treat code points as just tiny strings which can be mapped to integers?</div><div dir="auto"><br></div><div dir="auto">I kind have this fuzzy idea Haskell and a lot of other languages use the extended ascii character set in a sortah punned way that conflates binary and textual data. And that’s ignoring how most western / native English software folks naively treat chars as graphemes / atomic units of rendering, when this falls apart when engineering for internationally friendly software. </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 28, 2021 at 3:43 AM Hécate <<a href="mailto:hecate@glitchbra.in">hecate@glitchbra.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p>Carter, you might want to take a look at Elixir's standard
library, which (in my experience) has a good position when it
comes to graphemes <a href="https://hexdocs.pm/elixir/String.html" target="_blank">https://hexdocs.pm/elixir/String.html</a><br>
</p></div><div>
<div>Le 27/06/2021 à 15:58, Carter Schonwald
a écrit :<br>
</div>
<blockquote type="cite">
<div dir="auto">More deeply, it doesn’t suffice to guarantee
you’re gonna have a well formed unicode sequence! </div>
<div dir="auto"><br>
</div>
<div dir="auto">It’d need to be grapheme -> text -> text
right?</div>
<div dir="auto"><br>
</div>
<div dir="auto">I’ve def wanted to dig into how to make
programming more grapheme oriented for text at some point. I
think swift explcitly does this in their standard libraries ?</div>
<div><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Jun 27, 2021 at 1:37
AM Ivan Lazar Miljenovic <<a href="mailto:ivan.miljenovic@gmail.com" target="_blank">ivan.miljenovic@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div dir="ltr">
<div dir="ltr">On Sun, 27 Jun 2021 at 12:44, Andreas Abel
<<a href="mailto:andreas.abel@ifi.lmu.de" target="_blank">andreas.abel@ifi.lmu.de</a>>
wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"> >
`intersperse :: Char -> Text -> Text`<br>
<br>
Yeah, that looks silly indeed. Should be pruned or
marked as spam.<br>
</blockquote>
<div><br>
</div>
<div>"Spam" is a bit harsh. And it does indeed have
some use (albeit primarily with test suites and quite
possibly more efficient ways to do the required task
anyway): <a href="https://github.com/search?l=Haskell&q=Text.intersperse&type=Code" target="_blank">https://github.com/search?l=Haskell&q=Text.intersperse&type=Code</a>
<br>
</div>
</div>
</div>
<div dir="ltr">
<div class="gmail_quote">
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><br>
On 2021-06-27 01:33, Andrew Lelechenko wrote:<br>
> I know applications for `intercalate :: Text
-> [Text] -> Text`: `unwords`, `unlines`, etc.
But what is `intersperse :: Char -> Text ->
Text` good for? Am I correct assuming that its sole
merit is to mimic `Data.List` API? Note that
`Data.List.intersperse` is polymorphic and is
exceedingly rarely used for `Char -> String ->
String`.<br>
> <br>
> Best regards,<br>
> Andrew<br>
> _______________________________________________<br>
> Libraries mailing list<br>
> <a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
> <br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr">Ivan Lazar Miljenovic<br>
<a href="mailto:Ivan.Miljenovic@gmail.com" target="_blank">Ivan.Miljenovic@gmail.com</a><br>
<a href="http://IvanMiljenovic.wordpress.com" target="_blank">http://IvanMiljenovic.wordpress.com</a></div>
</div>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Libraries mailing list
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a>
</pre>
</blockquote>
<pre cols="72">--
Hécate ✨
🐦: @TechnoEmpress
IRC: Hecate
WWW: <a href="https://glitchbra.in" target="_blank">https://glitchbra.in</a>
RUN: BSD</pre>
</div>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div></div>