News for hackers. Stuff that matters.
Re:Why does nobody seem to know what imperative and declarat... by TedDoesntTalk on Friday July 29, 2022 @11:26PM (#32284025)
> How would you describe the absolute value function without saying “if” or “when

How is this? absolute value is distance a number is from 0.

I get your point, though.

Re:Why does nobody seem to know what imperative and declarat... by tshaddox on Friday July 29, 2022 @11:52PM (#32284132)
True, the syntax will obviously depend on what primitives the language provides. Of course it could also just provide the abs() function directly.