News for hackers. Stuff that matters.
Re:Twelve Years of Go by boloust on Wednesday November 10, 2021 @07:35PM (#29182972)
Most of the time, you'll return early after an error.

To get into a situation where you'd need to handle n! cases, you'd need to keep running the statements after a failure, and then collate and return all the errors at the end.

Not sure why you'd want to do that. You'd definitely need to go out of your way to do something like this, and probably start asking yourself why you're doing this pretty early on. Plus it would flat out refuse to compile in some cases where there are dependencies between the statements.

Re:Twelve Years of Go by closeparen on Wednesday November 10, 2021 @07:42PM (#29183020)
It’s + not * in that example.
Re:Twelve Years of Go by boloust on Wednesday November 10, 2021 @08:07PM (#29183222)
Ah, okay. In that case it becomes

  {n + 1 \choose n - 1}
What code are you writing that results in this set of possibilities?