3 ms·
Yeah, I agree about the term "threads" - it doesn't make for a very direct metaphor. As for functions, I think the term makes sense, even with the non-mathemat
by slang800 11y ago
Yeah, I agree about the term "threads" - it doesn't make for a very direct metaphor.
As for functions, I think the term makes sense, even with the non-mathematical definition, and especially in the context of OOP:
> an activity or purpose natural to or intended for a person or thing. synonyms: purpose, task, use, role
The "purpose" part doesn't make much sense with the way that we use the word, but it's certainly an activity. For example, a function of a stove is boiling water, its input would be liquid water, and its output would be steam & hot water. In OOP, "stove" would be the name of the class, and "boil_water" would be the function.
- akkartik 11y agoAh, that's an interesting way to look at it. I hadn't considered that. Was that how the term appeared in math, I wonder.. Thanks!