struct Symbol
Overview
A symbol is a constant that is identified by a name without you having to give it a numeric value.
:hello
:welcome
:"123"
:"symbol with spaces"
See Symbol literals in the language reference.
Internally a symbol is represented as an Int32, so it's very efficient.
You can't dynamically create symbols. When you compile your program, each symbol gets assigned a unique number.
Included Modules
- Comparable(Symbol)
Defined in:
remilib/rsconf/torsconf.crInstance Method Summary
Instance methods inherited from class Object
toRsconf(io : IO, *, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : NiltoRsconf(*, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : String toRsconf
Class methods inherited from class Object
fromRsconf(toplevel : RemiLib::RSConf::RSValue)fromRsconf(data : String | IO | Path) fromRsconf