Hacker News new | ask | show | jobs
by psv1 2497 days ago
To simplify, software (generally) does this:

    input >>> output
By definition the output is conditional on the input, at least if the program works correctly. That's why conditional statements are important - they express the relationship between input and output.

Isn't this really basic stuff? Or am I missing something?

2 comments

You can have output that’s conditional on the input without having conditional statements.

How is the output of the following not conditional upon the input? Are there any conditional statements in it?

F(x, y) = x + y

> You can have output that’s conditional on the input without having conditional statements.

Yes, of course you can.

mind bottling stuff here man thanks