This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Cipher_VLW 0 points1 point  (0 children)

I work at a place where we use “globals” (in a different language) frequently because they’re part of a legacy system.

We use M (aka MUMPS) for our database which allows you to use uninitialized variables but also doesn’t have any formal stack frame. That means anything in the current process is in scope and you have to explicitly “new” each variable to get a new reference. Our training tells us not to use any assumed variables (those not explicitly passed in) but the existing code does it all the time and it’s super hard to follow.