Question about Foo or foo?

Dear all,

I am new to Julia. And I often see many people using Foo or foo in their codes.

So what does Foo or foo mean? Why so many people like to use it?

2 Likes

It’s not just Julia, this is a common practice in programming languages as stand-ins in examples. In Julia, the convention is that variables and function names are lowercase, and types / modules are uppercase, so foo = 42 or bar() = "Hello, World!", or

struct Foo
    bar
end
2 Likes

@jar1 @kevbonham Thanks for your reply.