3 ms·
I bet nobody gets keys and values mixed up, even though it's basically exactly that distinction. Far from pedantic, in my view! If you don't know the difference
by to3m 10y ago
I bet nobody gets keys and values mixed up, even though it's basically exactly that distinction. Far from pedantic, in my view! If you don't know the difference I do think you'll have difficulty using the features effectively.
And if you do know the difference, which most will, it's worth knowing the standard terms. There's only two of them, and it won't take long to commit them to memory.
- taco_emoji 10y agoI've been coding for 20 years and never bothered to learn the difference. I assure you I can use methods and functions quite effectively.
- tempodox 10y agoTry to write an interpreter or compiler (for a language with functions of at least one argument). If you don't get the difference there, you will be in deep trouble.
- to3m 10y agoI bet you do know the difference - you just didn't know the words. And now you do!
- taco_emoji 10y agoI don't see how you could do any high-level programming without understanding the difference between defining a function and calling it. I think you misunderstood collyw's original comment (or maybe I did?) - it's not pedantic to understand the conceptual difference, it's pedantic to worry about the terminology. (Except if you're writing a compiler, I guess, which most programmers are not.)