Symbol: An identifier treated as a value in its own right, not evaluated — e.g. 'foo in Lisp is the symbol foo, not a call to it. A symbol is an identifier treated as a value itself. In Lisp, 'customer is the symbol named customer, not a lookup of a variable called customer. Ruby has symbols like :customer, and JavaScript has a Symbol type.
Symbols are useful as names and keys. They are cheap to compare, because two symbols with the same name are the same object, and they make clear that a value is a label rather than text to display.
What should you keep in mind with Symbol?
In JavaScript, Symbol() creates unique keys that cannot clash with other properties, which libraries use to attach hidden metadata to objects. Well-known symbols like Symbol.iterator let your own objects work with for...of. In PHP, the closest equivalents are enums and class constants, which give named, comparable values instead of loose strings.
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.