<br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 9:33 PM, Ulf Wiger <span dir="ltr"><<a href="mailto:ulf@feuerlabs.com" target="_blank">ulf@feuerlabs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><br></div><div>Yeah, and…</div><div><br></div><div><div>1> erl_scan:string("\"abc\"").</div><div>{ok,[{string,1,"abc"}],1}</div></div><div><br></div>
<div>...so an uneducated user might be forgiven for thinking that there *are* in fact strings in Erlang. :)</div></div></blockquote><div><br></div><div>Right - I guess it should be {ok,[{string_literal,1,[65,66,67]}]}</div>
<div>which would be even more confusing.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div>
<div>BR,</div><div>Ulf W</div><br><div><div><div class="h5"><div>On 21 Jan 2013, at 21:30, Steve Davis wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div style="word-wrap:break-word"><br><div><div>
On Jan 21, 2013, at 2:26 PM, Joe Armstrong <<a href="mailto:erlang@gmail.com" target="_blank">erlang@gmail.com</a>> wrote:</div><br><blockquote type="cite"><br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 8:38 PM, Steve Davis <span dir="ltr"><<a href="mailto:steven.charles.davis@gmail.com" target="_blank">steven.charles.davis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
The following appears to encode lists of integers as strings (?!?):<br>
<br></blockquote><div><br></div><div>No no no  - Erlang doesn't have strings - there are no strings in Erlang</div><div>(repeat this 100 times).</div><div><br></div></div></blockquote><div><br></div><div>Indeed, but the documentation says byte 107 means:</div>
<div><h1 style="font-family:Verdana,Arial,Helvetica,sans-serif">8 External Term Format</h1></div><div><h3 style="font-family:Verdana,Arial,Helvetica,sans-serif"><a name="13c5ed165f6de37c_id86237">8.14  STRING_EXT</a></h3>
<div><br></div><div>So please forgive the "inaccuracy" :-)</div><div><br></div><div>br,</div><div>/s</div></div></div></div></div></div><div class="im">_______________________________________________<br>erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">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>
</div></blockquote></div><br><div>
<div><div>Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.</div><div><a href="http://feuerlabs.com" target="_blank">http://feuerlabs.com</a></div></div><div><br></div><br>
</div>
<br></div></blockquote></div><br>