Symbol (programming): Difference between revisions

Content deleted Content added
Lisp: Change formatting to MediaWiki syntax
m Julia: Grammar fix
Line 49:
 
===Julia===
Symbols in In [[Julia (programming language)|Julia]], are [[String interning|interned strings]] used to represent identifiers in parsed juliaJulia code([[Abstract syntax tree|ASTs]]) and as names or labels to identify entities (for example as keys in a dictionary).<ref>{{cite web |title=Julia Core.Symbol |url=https://docs.julialang.org/en/v1/base/base/#Core.Symbol |website=Julia Documentation |access-date=31 May 2022}}</ref>
 
===Lisp===
A symbol in [[Lisp (programming language)|Lisp]] is unique in a [[namespace]] (or ''package'' in [[Common Lisp]]). Symbols can be tested for equality with the function EQ. Lisp programs can generate new symbols at runtime. When Lisp reads data that contains textual represented symbols, existing symbols are referenced. If a symbol is unknown, the Lisp reader creates a new symbol.