<div dir="ltr">Bit strings could come very handy for compression algorithms too, say Huffman coding a byte stream. Yes, at the end you may have to pad the bitstring to get whole bytes that you can save to a file or send over the network, but until then it's very useful that your buffer can have an arbitrary length. Bitstrings are rarely needed, but when you need them, it's Godsent that the language has excellent support for this data type!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 20 Aug 2019 at 21:24, Steve Strong <<a href="mailto:steve@srstrong.com">steve@srstrong.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Or take SDI, where each word is 10bits... bitstring is invaluable.<br>
<br>
Sent from my iPhone<br>
<br>
> On 20 Aug 2019, at 20:21, Fred Hebert <<a href="mailto:mononcqc@ferd.ca" target="_blank">mononcqc@ferd.ca</a>> wrote:<br>
> <br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>