<font color="#000000"><font face="arial,helvetica,sans-serif">Hi,<br>
<br>
This is an introductory book right, so how about something like:<br>
<br>
</font></font>
<< A "string" is a list of integers where the integers represent characters <br> (actually, they are Unicode codepoints that represent characters, but don't <br> worry about that right now). >><br>
<br>
Thomas<br>
<br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 11:24 AM, Joe Armstrong <span dir="ltr"><<a href="mailto:erlang@gmail.com" target="_blank">erlang@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm working on a 2'nd edition of my book, and have got to strings :-)<br>
Strings confuse everybody, including me so I have a few questions:<br>
<br>
To start with Erlang doesn't have strings - it has lists (not strings)<br>
and it has string literals.<br>
<br>
I want to define a string - is this correct:<br>
<br>
<< A "string" is a list of integers where the integers<br>
represent Unicode codepoints. >><br>
<br>
Questions:<br>
Is the sentence inside << .. >> using the correct terminology?<br>
If not what should it say?<br>
<br>
Is the sentence inside << ... >> widely understood, do you think this<br>
would confuse a lot of people?<br>
<br>
Is the phrase "string literal" widely understood?<br>
<br>
<br>
Cheers<br>
<br>
/Joe<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br>