This is just normal. Is it confusing for a new programmer? Maybe. Is it something they should learn to distinguish? Yes!
This is just normal. Is it confusing for a new programmer? Maybe. Is it something they should learn to distinguish? Yes!
I don’t think the answer to this is boolean. For instance:
> I can run C# in Unity. The number of functions I can call is vastly different than running it outside Unity.
If one is learning both in tandem, coming from a background with a language with different scoping rules, knowing the distinction even exists and should be a consideration might not even show up in reading materials. Sure, it’s an important skill to learn, but it’s not especially transferable. I know how it works in some environments and still find it baffling in others where I even know how to read the code. (Example: Java treats methods as locally scoped functions; I still have no idea how to distinguish them without running the code in a debugger. But I don’t write Java! I have a limited understanding of what’s in scope reading it.)