[erlang-questions] Which is best? string:concat or ++?

Paul Barry paul.james.barry@REDACTED
Mon May 7 15:31:04 CEST 2012

Hi folks.

This might be a case of a dumb question, but here goes anyway.  :-)

I have two strings, A and B.  Is it better to use:

   string:concat(A, B)


    A ++ B

when combining them to create a new string?  I'm writing some code
that generates a chunk of HTML.  I know that using ++ on big lists is
regarded as a "no-no", but is it acceptable here?



Paul Barry, w: http://paulbarry.itcarlow.ie - e: paul.barry@REDACTED
Lecturer, Computer Networking: Institute of Technology, Carlow, Ireland.

More information about the erlang-questions mailing list