3 ms·
> You get one set of data. Bundling data with functions is way better than global data. I'm not sure what language you are talking about where you have "one se
by ogre_codes 6y ago
> You get one set of data. Bundling data with functions is way better than global data.
I'm not sure what language you are talking about where you have "one set of data", maybe BASIC?
There are almost no modern languages save perhaps Javascript that rely on global data extensively. (and even modern Javascript has moved away from use of global variables).