io_lib:format and ++

Hal Snyder hal@REDACTED
Tue Feb 19 07:27:36 CET 2002

I don't think io_lib:format is returning a flat character string.

We have:

1> "hello " ++ "there".
"hello there"


2> io_lib:format("hello ~s", ["there"]).

So, cooking long strings with io_lib:format() gave me a surprise when
the next thing to happen was a regexp:split, which does care about

Bug, or confused programmer?

This is with otp_src_R8B-20011015-SNAPSHOT.

More information about the erlang-questions mailing list