Re: Proposal: merged system calls

Darren J Moffat (darren@xarius.demon.co.uk)
Tue, 21 May 1996 21:21:40 +0100 (BST)


On Sun, 19 May 1996, Bryn Paul Arnold Jones wrote:

> Hmm, woulden't makeing this work:
>
> send( 5, read( 4, NULL, 100), 100, 0);
> send( 5, read( open( "/whatever", O_RDONLY), NULL, lenfile( "/whatever")), lenfile( "/whatever"), 0);

I've already made this work!

.....

Okay I'll tell the whole truth, I created a set of bindings for the lazy
functional programming language Haskell to the UNIX Socket and low level
IO routines.

IMHO anyone who wants to program like the above and is currently using C
is not only using the wrong language but is in the wrong paradigm.

Functional programming has it's place and so does C but please don't mess
up the symantics of standard UNIX tools to make one look like the other.
send and read are defined by POSIX and that is the way they should stay in
libc - if you don't like it redefine it in a user lib or use the
appropriate language bindings.

--
Darren J Moffat