<p style="margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.5em !important; font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">

Hi,</p><p style="margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.5em !important; font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">

I&#39;m using this (<a href="https://github.com/rabbitmq/rabbitmq-tutorials/tree/master/erlang" style="font-family: arial; line-height: normal; font-size: small; ">https://github.com/rabbitmq/rabbitmq-tutorials/tree/master/erlang</a>)  erlang examples as an entry point to RabbitMQ and due to the fact that I&#39;m also a newbie to erlang there&#39;s something I don&#39;t get.</p>

<p style="margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.5em !important; font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">

In the send.erl example, when you connect to the RabbitMQ server you specify the host with a string (&quot;localhost&quot;) but ,for example, when you specify the routing_key you use a bitstring (&lt;&lt;&quot;hello&quot;&gt;&gt;).</p>

<p style="margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.5em !important; font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">

I know the differences between strings and bitstrings but, why don&#39;t we allways use one of them? why sometimes strings and others bitstrings?</p><p style="margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 1.5em !important; font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">

Thanks,<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Farruco Sanjurjo</p>