Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Variables 其他语言是否使用Foo、Bar等语言;垃圾、鸡蛋 在java、JavaScript、C++、C++、C语言中,我看到了类似于教程和代码片段中的代码的代码。 int foo = 5; int bar = 10; baz(foo, bar);_Variables_Language Agnostic_Coding Style - Fatal编程技术网

Variables 其他语言是否使用Foo、Bar等语言;垃圾、鸡蛋 在java、JavaScript、C++、C++、C语言中,我看到了类似于教程和代码片段中的代码的代码。 int foo = 5; int bar = 10; baz(foo, bar);

Variables 其他语言是否使用Foo、Bar等语言;垃圾、鸡蛋 在java、JavaScript、C++、C++、C语言中,我看到了类似于教程和代码片段中的代码的代码。 int foo = 5; int bar = 10; baz(foo, bar);,variables,language-agnostic,coding-style,Variables,Language Agnostic,Coding Style,我假设当不需要遵循命名约定(如快速代码段)时,它们用于快速变量名,但它们已经变得非常流行,似乎是语言的一部分。例如,python用foo和bar交换spam和egs spam = 'spam' eggs = 'eggs' spam_and_eggs(spam, eggs) 当我看到这些变量名时,我立刻想到python而不是其他语言。其他语言是否有签名占位符变量名,如python?这些变量通常根本不是语言的一部分,它们被称为元语法变量,允许您在示例代码中使用变量,而无需过多考虑应该调用什么 我倾

我假设当不需要遵循命名约定(如快速代码段)时,它们用于快速变量名,但它们已经变得非常流行,似乎是语言的一部分。例如,python用
foo
bar
交换
spam
egs

spam = 'spam'
eggs = 'eggs'
spam_and_eggs(spam, eggs)

当我看到这些变量名时,我立刻想到python而不是其他语言。其他语言是否有签名占位符变量名,如python?

这些变量通常根本不是语言的一部分,它们被称为元语法变量,允许您在示例代码中使用变量,而无需过多考虑应该调用什么

我倾向于使用类似的方法,在测试一次性代码的堆栈溢出时调用所有源文件
qq.c
qq.py
(例如)


上面列出了其中的一部分(包括它们可能的词源),但不幸的是,没有按偏好和使用顺序列出我个人的最爱,
xyzy
plugh
twisty
段落,显示我的年龄:-)

怀疑这是正确的问题类型,因此…
foo
bar
也被Objective-C使用。正确的单词是。