[erlang-questions] definition of iolist

Bjorn Gustavsson bjorn@REDACTED
Fri Aug 31 14:27:54 CEST 2007


Anthony Shipman <als@REDACTED> writes:

> The documentation often says this:
> 
> iolist = [char() | binary() | iolist()]
>   a binary is allowed as the tail of the list
> 
> This says to me that an iolist is a list whose members can be characters, 
> binaries or iolists. In which case it is automatic that a binary can be the 
> tail of the list. So what is the point of the comment?

A character is not allowed in the tail.

/Bjorn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list