What is foo? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is foo?

I am seeing Foo for a while now; what exactly Foo is?

20th Feb 2019, 4:20 PM
Khalilullah Stanikzai
Khalilullah Stanikzai - avatar
1 Answer
+ 2
It's a 'metasyntactic variable'. When you want to quickly explain a few lines of code, usually you need variables, too. How to name them? x? y? some_list? var? All possible, but at the same time there's the 'custom' to use a set of always the same funny names. For example in Python you see 'spam' and 'eggs' used everywhere - a Monty Python reference.
20th Feb 2019, 5:02 PM
HonFu
HonFu - avatar