Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Writing a C Compiler, Part 1. Parent comment
write(a := read())
where write will not be executed if read fails, nor will a have any value assigned to it. Failure is an option and not an error.
So to copy standard input to standard output, we do
every write(read())
At the end of file, the read fails, the write fails and then the every fails and on you go.
There are no comments on this comment yet.
write(a := read())
where write will not be executed if read fails, nor will a have any value assigned to it. Failure is an option and not an error.
So to copy standard input to standard output, we do
every write(read())
At the end of file, the read fails, the write fails and then the every fails and on you go.