/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Phrase origin: Why do we "call" functions?
(quuxplusone.github.io)
210 points
todsacerdoti
| 1 comments |
09 Jul 25 04:04 UTC
|
HN request time: 1.514s
|
source
Show context
seabass
◴[
09 Jul 25 04:49 UTC
]
No.
44506423
[source]
▶
>>44506251 (OP)
#
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.
pansa2
◴[
09 Jul 25 06:11 UTC
]
No.
44506785
[source]
▶
>>44506423
#
“for” is short for “for each”, presumably. `for i in 1..=10` is short for “for each integer i in the range 1 to 10”.
ID:
GO
↑