Joe Slater
Joe Slater

Reputation: 2473

What is Foo in AS3?

I have seen it many times like here AS3: How to convert a Vector to an Array and have never really learnt about it in any tutorials.

Even searched on google and got no results - http://www.google.co.uk/search?hl=en&q=Foo+in+AS3&meta=

is it some sort of object or variable type that I have been missing?

Or is it something that comes with some external library?

When I compile my code with Foo I get

Type was not found or was not a compile-time constant: Foo.

Thanks

Upvotes: 5

Views: 336

Answers (3)

Chunky Chunk
Chunky Chunk

Reputation: 17217

Foobar - Wikipedia:

the use of foo in a programming context is generally credited to the Tech Model Railroad Club (TMRC) from circa 1960. However, the precise relationship of these terms is not known with certainty, and several anecdotal theories have been advanced to identify them.

Upvotes: 0

idlxqz
idlxqz

Reputation: 31

Foo is just a term used in programmer's slang for variables examples when the name doesn't really matter, or to represent a value that's not important.

You can read about the "Foo" term at http://www.ietf.org/rfc/rfc3092.txt

Upvotes: 3

user529758
user529758

Reputation:

It's not an actual type, just a placeholder to be useful for giving an example. Sometimes referred to as a metasyntactic type.

So, you have to substitute an actual type in place of Foo when attempting to compile the code, else it won't compile, obviously.

Upvotes: 6

Related Questions