Hacker News new | ask | show | jobs
by petters 3280 days ago
This is a really bad example. Allowing constants like π to be passed to a function is the opposite of what you should do.

There is only one correct value. Period.

1 comments

You can imagine a case where the function has to verify an answer to a problem where the pi is assumed to be 3. Say e.g. writing a maths quiz, an online course, etc.