Organizational purposes, I'd guess is the primary reason. This way they can put all the mount journal functions in a single global (the C_MountJournal table), rather than making them all globals in their own right, and it's a clear indicator that those functions are all part of a group. On the backend, the mount journal API may even be a separate module of some kind, but I don't really know about that.
The "C_" prefix on all those tables is just a naming convention, so it's obvious when you see something named "C_MountJournal" that it's pointing to stuff on the C backend (in this case, API functions), whereas something named "MountJournal" is probably pointing to something in the Lua UI frontend (like a frame or a simple Lua table).
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
|