News for hackers. Stuff that matters.
Re:Why I Program in Erlang by jlouis on Tuesday October 30, 2012 @09:18AM (#4717223)
This isn't entirely true, see file:pread/2 for how to do it with a file. We lack a binary:pread/2 though :)
Re:Why I Program in Erlang by nivertech on Tuesday October 30, 2012 @10:33AM (#4717476)
thanks for pointing it out, looks like it will not work with sockets though.

Also spec says that it will return list of either strings or binaries, not exactly iolist.

Re:Why I Program in Erlang by masklinn on Tuesday October 30, 2012 @12:49PM (#4718191)
> Also spec says that it will return list of either strings or binaries, not exactly iolist.

It's a proper subset of iolists, since it reads from flat data (a file) there isn't much sense in its adding arbitrary amounts of nesting to it.