Context context in the end is what stuff?

Context context in the end is what stuff?

From : https: //www.zhihu.com/question/26387327

  • Context: collection program running state and related resources.
  • Context is the environment of the snapshot.
  • Context is a very generalized concept, roughly meaning "now associated with the work of the surrounding environment." What is this "ambient" specifically depends entirely on the specific language.
  • Each section of the program has a lot of external variables. Add only like this simple function is not external variables. Once you have a program of external variables, this process is not complete, it can not operate independently. In order to make you run them, one by one, you should write some value to all external variables into account. The set of these values ​​is called a context.

Actually, I think the fourth interpretation above is better understood that, in simple terms, like the one you want to run a function that requires a, b, c three parameters, so you only have these three parameters passed to the function it can run in three external parameter here is the context in which sections of the program, in fact, it can be understood as a set of external parameters needed to run a program.

Published 32 original articles · won praise 13 · views 30000 +

Guess you like

Origin blog.csdn.net/weixin_43519048/article/details/102480877