Skip to content

Comment on Why Is Object-Oriented Programming Useful? With a Role-Playing Game Exampleparent

Comments

What if your program has no output? The applications I write seldom has. Instead they save down stuff or send it away here and there during the lifespan of the program.

What is saved and what is sent are outputs.

FP seems to be focused on one input going through transformations ending up in one output.

That's not entirely untrue, but that one can be a set of simpler values, a processes can be values, too.

AboutSource Built by g1lg1l

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