String
String typed values are a string i.e. an array of unicode characters
Strings...
- are immutable, i.e. assigning to an string results in a copy of the original string
- can be passed in/out of ops via string parameters
- can be initialized via string initialization
- are coerced according to string coercion
Initialization
String typed values can be constructed from a literal or templated string.
A templated string is a string which includes one or more variable-reference [string]. At runtime, each reference gets evaluated and replaced with it's corresponding value.
Initialization Example (literal)
i'm a string
Initialization Example (templated)
# JSON representation of in scope object "someObject", replaces $(someObject) in the string
# contents of in scope file "someDir/file.txt" replaces $(someDir/file.txt) in the string
pre $(someObject) $(someDir/file.txt)
Coercion
String typed values are coercible to: