Hacker News new | ask | show | jobs
by quasarj 510 days ago
I was primarily offended by the second code snippet, in which there is a variable named foundException but it is not an exception.

I didn't realize it was Sage (I didn't know that existed) but I'm not sure that actually makes a difference. Obviously it works, and that's fine, but it's still horribly ugly.

1 comments

> named foundException but it is not an exception

They don't mean "found an execution exception", they literally mean that the code found an exception to the rule that n^9 + 4n^6 + n^5 + 2n^3 is divisible by 8.

Yeah I understand that. You still shouldn't do it.