Symbol (programming): Difference between revisions

Content deleted Content added
Chharvey (talk | contribs)
Support: add Dart to table
m Replaced obsolete tt tags and reduced Lint errors
Line 10:
! language || type name(s) || example literal(s)
|-
| [[ANSI]] [[Common Lisp]] || symbol, keyword || <ttcode>symbol</ttcode>, <ttcode>:keyword</ttcode>
|-
| [[Clojure]] || symbol,<ref>[http://clojure.org/data_structures#Data%20Structures-Symbols Symbols] on the page on Data Structures</ref> keyword<ref>[http://clojure.org/data_structures#Data%20Structures-Keywords Keywords] on the page on Data Structures</ref> || <ttcode>'symbol</ttcode>, <ttcode>:keyword</ttcode>
|-
| [[Dart (programming language)]] || Symbol<ref>{{cite web |title=A tour of the Dart language {{pipe}} Symbols |url=https://dart.dev/guides/language/language-tour#symbols |website=Dart programming language |access-date=17 January 2021}}</ref> || <ttcode>#sym</ttcode>
|-
| [[Elixir (programming language)|Elixir]] || atom, symbol || <ttcode>:sym</ttcode>
|-
| [[Erlang (programming language)|Erlang]] || atom || <ttcode>sym</ttcode> or <ttcode>'sym'</ttcode>
|-
| [[Julia (programming language)|Julia]] || Symbol || <ttcode>:sym</ttcode>
|-
| [[Objective-C]] || SEL || <ttcode>@selector(sym)</ttcode>
|-
| [[PICAXE]] [[BASIC]] || symbol || <ttcode> symbol let name = variable </ttcode>
|-
| [[Prolog (programming language)|Prolog]] || atom, symbol || <ttcode>sym</ttcode> or <ttcode>'sym'</ttcode>
|-
| [[Ruby (programming language)|Ruby]] || Symbol || <ttcode>:sym</ttcode> or <ttcode>:'sym'</ttcode>
|-
| [[Scala (programming language)|Scala]] || scala.Symbol || <ttcode>'symbol</ttcode>
|-
| [[Scheme (programming language)|Scheme]] || symbol || <ttcode>sym</ttcode>
|-
| [[Smalltalk]] || Symbol || <ttcode>#sym</ttcode> or <ttcode>#'sym'</ttcode>
|-
| [[SML/NJ]] || Atom.atom ||
|-
| [[JavaScript]] (ES6 and later) || Symbol || <ttcode>Symbol("sym");</ttcode>
|-
| [[Wolfram Language]] || Symbol || <ttcode>Symbol["sym"]</ttcode> or <ttcode>sym</ttcode>
|-
|[[K (programming language)]]