Or you can use io_lib:format and assign the result to a variable instead.
Checking for valid input is fairly trivial, but the Erlang convention is to assume that something this far into the system is okay, and correct for the error by dying and letting the supervisor deal with it.
We're a place where coders share, stay up-to-date and grow their careers.
Erlang: (in the REPL)
Or you can use io_lib:format and assign the result to a variable instead.
Checking for valid input is fairly trivial, but the Erlang convention is to assume that something this far into the system is okay, and correct for the error by dying and letting the supervisor deal with it.