Timeline for How to explain the difference between a variable and a key in a key-value pair?
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 6, 2014 at 5:20 | review | Close votes | |||
Aug 7, 2014 at 2:05 | |||||
Aug 6, 2014 at 1:32 | answer | added | svidgen | timeline score: 1 | |
Feb 25, 2014 at 9:31 | comment | added | Jörg W Mittag | @Euphoric: I'm not talking about the internal implementation of any specific Python runtime here. This is part of the language specification, and those dictionaries are exposed to the programmer. In fact, manipulating the modules or globals dictionaries is a common metaprogramming technique. | |
Feb 25, 2014 at 5:56 | comment | added | Euphoric | @JörgWMittag I would consider that implementation detail. | |
Feb 24, 2014 at 23:14 | comment | added | Jörg W Mittag | @Euphoric: Well, in Python, they are the same concept. Instance variables are actually just entries in the instance variable dictionary, local variables are actually just entries in the locals dictionary, modules are actually just entries in the modules dictionary and so on. | |
Feb 24, 2014 at 19:40 | history | tweeted | twitter.com/#!/StackProgrammer/status/438035704850186242 | ||
Feb 24, 2014 at 19:38 | answer | added | Aaron Hall | timeline score: 1 | |
Feb 24, 2014 at 19:15 | answer | added | amon | timeline score: 5 | |
Feb 24, 2014 at 19:13 | answer | added | user7146 | timeline score: 2 | |
Feb 24, 2014 at 18:40 | review | First posts | |||
Feb 24, 2014 at 20:31 | |||||
Feb 24, 2014 at 18:33 | comment | added | FrustratedWithFormsDesigner | @MetaFight: If you expand on that a little, it could make a good answer. | |
Feb 24, 2014 at 18:33 | comment | added | FrustratedWithFormsDesigner | When you implement a key-value pair in your program, you use a variable to store the Key, and another variable to store the Value. | |
Feb 24, 2014 at 18:30 | comment | added | MetaFight | They operate in different domains. For most languages, variable names have meaning at design-time and compile-time, wheras key-value pair keys have meaning at run-time. | |
Feb 24, 2014 at 18:23 | comment | added | Euphoric | This is first time I'm hearing someone thinks it is the same concept. | |
Feb 24, 2014 at 18:21 | history | asked | user3347918 | CC BY-SA 3.0 |