33

The meta-tag has 66 questions and a few meanings:

  • Python's locals() function (returns "a dictionary representing the current local symbol table")
  • Locals window ("displays the values and types of all variables that are within the scope of the currently executing procedure")
  • Local variables
  • Ruby On Rails ("You can also pass in arbitrary local variables to any partial you are rendering with the locals")
  • Typo: (retagged 2 questions)
  • localStorage from JavaScript (retagged 1 question)

Since SO has the tag (464 questions) and in most cases people mean "local variables" when they tag their questions with , it would be fine to synonymize them.

Other options:

  1. Change to everywhere (burninate it to avoid further confusion).
  2. Divide into , etc. (probably not the best idea, since then these tags will contain ~20 questions each)

Opinions?

Update: I proposed the synonym.

1 Answer 1

6

To synonymize Locals with Local variables seems most sensible to me.

8
  • 1
    Not sure if this is a good idea since not all "locals" usage are about local variables, as the Python example demonstrate and dominates in the share.
    – Braiam
    Commented May 30, 2015 at 19:04
  • 3
    @Braiam: The question has, besides typos, only identified one case that isn't about local variables (javascript local storage)
    – Ben Voigt
    Commented May 31, 2015 at 4:12
  • 1
    @BenVoigt you are missing the point. "locals" doesn't mean "local variables" on all programming contexts. It can mean the use of a function to get local variables (aka X to obtain Y), something that wants to be called "locals" but it's actually partials in Ruby (aka Z to set Y), and a window to see those "locals variables" in VS (aka P to see Y), where X, Z and P are three different things with similar naming yet different purposes and functionality which only point in common is that they have something to do with "local variables". Y obviously is the "locals variables".
    – Braiam
    Commented May 31, 2015 at 4:56
  • 4
    @Braiam: No, I'm not missing the point. There are multiple things you can do with local variables (language rules concerning local variables, or inspect them at runtime using a debugger or reflection API), but they are all still about the same topic: local variables. Disambiguation is needed when the term means different things at different times, not when there are multiple questions about the same thing. All of these are fundamentally about the same thing.
    – Ben Voigt
    Commented May 31, 2015 at 5:00
  • 2
    @BenVoigt if you are tasked with writing a tag excerpt for this tag, what would be the body of it? Remember you have to capture the complete usage, not just a part of it.
    – Braiam
    Commented May 31, 2015 at 13:17
  • 4
    @Braiam: Says who? If that were true, some tag wikis would have to be hundreds of pages long. Saying that the variables are associated to a particular function, and mentioning scope, lifetime, and recursion should be adequate. What you don't have to do is create overspecified tags for general concepts. For example, the "python-locals" tag suggested in the question should be a combination of local-variables and reflection. Many languages besides python allow enumeration of the local symbol table (example: Matlab).
    – Ben Voigt
    Commented May 31, 2015 at 14:41
  • 4
    And rather than "visual-studio-locals-window", use local-variables together with debugger. The same feature is available in Eclipse, Code Composer Studio, and pretty much every IDE in existence.
    – Ben Voigt
    Commented May 31, 2015 at 14:43
  • 2
    @BenVoigt, I disagree for the simple reason that I think local-variables is insufficiently specific to be a good tag. I'd probably tag with reflection and the language tag, I think.
    – dfeuer
    Commented May 31, 2015 at 22:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .