Strings
Prepending s
to strings allow usage of $variable
Prepending f
to strings allows simple formatted string like printf
. Follow the $variable%s
with the %d or %s etc like printf
he raw interpolator is similar to the s
interpolator except that it performs no escaping of literals within the string. Here’s an example processed string:
Here the s
string interpolator replaced the characters \n
with a return character. The raw
interpolator will not do that.
Single '
'string1
creates a symbol which are interned strings
'abcd eq 'abcd
will return true, while "abcd" eq "abcd"
Real for strings that are more code than they are data, i.e we don't care the order of characters its really just a symbol like using constants for DB_Names basically
Last updated