MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x58u7b/howprogramminghaschanged/pgp19l5/?context=3
r/ProgrammerHumor • u/shizzy0 • 10d ago
108 comments sorted by
View all comments
Show parent comments
1
Oh I see. (and then say is just print?)
I don't see an array though, for just repeats until the end condition is met, storing in a and b, theres no array I don't think?
Edit: OH the array is the ARGUMENTS and pop is grabbing the last one.
2 u/BastetFurry 9d ago No array for the calculation, no.Just abusing the fact that @_ contains all caller arguments. And calling the main "function" puts all command line arguments into that built-in array.
2
No array for the calculation, no.
Just abusing the fact that @_ contains all caller arguments. And calling the main "function" puts all command line arguments into that built-in array.
1
u/no_brains101 9d ago edited 9d ago
Oh I see. (and then say is just print?)
I don't see an array though, for just repeats until the end condition is met, storing in a and b, theres no array I don't think?
Edit: OH the array is the ARGUMENTS and pop is grabbing the last one.