Why is <<"Hello">> ++ <<"world!">> a bad idea?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Why is <<"Hello">> ++ <<"world!">> a bad idea?

empro2
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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Why is <<"Hello">> ++ <<"world!">> a bad idea?

Richard O'Keefe
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, <[hidden email]> 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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions