Literals/String: Difference between revisions

m
Regularize non-standard header markup - Fix some Perl 6 -> Raku names
m (added related tasks:)
m (Regularize non-standard header markup - Fix some Perl 6 -> Raku names)
Line 290:
"string data c"
 
=== {{header|Applesoft BASIC}} ===
<lang ApplesoftBasic>M$ = CHR$(13) : Q$ = CHR$(34)
A$ = "THERE ARE" + M$
Line 308:
</lang>
 
=== {{header|ZX Spectrum Basic}} ===
 
The ZX Spectrum supports the use of CHR$(34).
Line 2,154:
=={{header|Raku}}==
(formerly Perl 6)
Unlike most languages that hardwire their quoting mechanisms, the quote mechanism in Perl 6Raku is extensible, and all normal-looking quotes actually derive from a parent quoting language called Q via grammatical mixins, applied via standard Perl 6Raku adverbial syntax.
The available quote mixins, straight from current spec S02, are:
<pre>Short Long Meaning
Line 2,195:
The <tt>:qq</tt>-derived languages all give normal Perlish interpolation, but individual interpolations may be chosen or suppressed with extra adverbs.
 
Unlike in Perl 5, we don't use backticks as shorthand for what is now expressed as <tt>qqx//</tt> in Perl 6Raku.
(Backticks are now reserved for user-defined syntax.)
Heredocs now have no special <tt><<</tt> syntax,
10,333

edits