←back to thread

156 points todsacerdoti | 1 comments | | HN request time: 0.244s | source
Show context
seabass ◴[] No.44506423[source]
I love this sort of cs history. I’m also curious—why do we “throw” an error or “raise” an exception? Why did the for loop use “for” instead of, say, “loop”?
replies(7): >>44506448 #>>44506467 #>>44506568 #>>44506657 #>>44506785 #>>44506943 #>>44507014 #
1. baq ◴[] No.44506657[source]
You throw something catchable and if you fail to catch it it’ll break. Unless it’s a steel ball.

You raise flags or issues, which are good descriptions of an exception.