[erlang-questions] io:format validation

Sean Cribbs <>
Tue Nov 18 23:26:56 CET 2014


Nevermind, I found it deep in erl_lint.

On Tue, Nov 18, 2014 at 3:03 PM, Sean Cribbs <> wrote:

> Where in the OTP source is the validation of format strings done?
> Specifically, when you have io:format/2,3 or io_lib:format/2,3 in your code
> and the compiler complains about the number of patterns not matching the
> number of arguments.
>
> I'd like to use this elsewhere, for instance, where a library call
> eventually calls io_lib:format/2,3 but the caller into the library is not
> validated.
>
> --
> Sean Cribbs <>
> Sr. Software Engineer
> Basho Technologies, Inc.
> http://basho.com/
>



-- 
Sean Cribbs <>
Sr. Software Engineer
Basho Technologies, Inc.
http://basho.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141118/97a4b78f/attachment.html>


More information about the erlang-questions mailing list