On Thu, May 20, 2010 at 6:32 AM, Philippe Marschall <span dir="ltr">&lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">2010/5/19 Michael Lucas-Smith &lt;<a href="mailto:mlucas-smith@cincom.com">mlucas-smith@cincom.com</a>&gt;:<br>
</div><div><div></div><div class="h5">&gt; The expectation of the GRCodec is that, unfortunately, you will get back a<br>
&gt; String object no matter whether you&#39;re doing an encode: or a decode: .. I<br>
&gt; would *LOVELOVELOVE* to return a ByteArray when you call #encode: - but this<br>
&gt; has never worked because Pharo/Squeak could never do it. May be this has<br>
&gt; changed, but none of the code that calls #decode: gives us a ByteArray - all<br>
&gt; of the tests, examples, seaside actual code passes in a String containing<br>
&gt; characters representing bytes. I would really love it if the API had a<br>
&gt; contract like this:<br>
&gt;<br>
&gt; GRCodec&gt;&gt;encode: (String)<br>
&gt;    ^(ByteArray)<br>
&gt;<br>
&gt; GRCodec&gt;&gt;decode: (ByteArray)<br>
&gt;    ^(String)<br>
<br>
</div></div>I agree. I believe the first one is doable, I&#39;ll hack together a<br>
prototype today. The second is more tricky because the servers<br>
themselves (Comanche and Swazoo) already give us a String which is<br>
actually just a ByteArray.<br><br></blockquote><div>Maybe we could get the servers &quot;fixed&quot; (might imply a mode you can set or something). Obviously the server adaptors can simply deal with it as well, but there&#39;s going to be an inefficiency there.<br>

</div></div><br>Julian<br>