[erlang-questions] Why is <<"Hello">> ++ <<"world!">> a bad idea?

Richard O'Keefe raoknz@REDACTED
Thu Aug 22 05:58:26 CEST 2019


Because ++ is *list* concatenation and list concatenation only?
1> A = <<"Hello">>, B = <<" ">>, C = <<"world!">>,
1> <<A/binary, B/binary, C/binary>>.
<<"Hello world!">>


On Thu, 22 Aug 2019 at 05:38, <empro2@REDACTED> wrote:

> Playing with bitsy strings I happened to enter s/th like
> that – and got a little surprisy.
>
> ~Michael
>
> --
>
> That which was said, is not that which was spoken,
> but that which was understood; and none of these
> comes necessarily close to that which was meant.
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190822/f67c62aa/attachment.htm>


More information about the erlang-questions mailing list