Hacker News new | ask | show | jobs
by TedDoesntTalk 1423 days ago
> 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.

1 comments

True, the syntax will obviously depend on what primitives the language provides. Of course it could also just provide the abs() function directly.