Skip to content

Comment on Ask HN: Why Are Conditionals Important?parent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.