Idiomatically determine all the characters that can be used for symbols: Difference between revisions
Content added Content deleted
(→{{header|AWK}}: fix the code) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: Fix comments: Perl 6 --> Raku) |
||
Line 509: | Line 509: | ||
=={{header|Raku}}== |
=={{header|Raku}}== |
||
(formerly Perl 6) |
(formerly Perl 6) |
||
Any Unicode character or combination of characters can be used for symbols in |
Any Unicode character or combination of characters can be used for symbols in Raku. Here's some counting rods and some cuneiform: |
||
<lang perl6>sub postfix:<𒋦>($n) { say "$n trilobites" } |
<lang perl6>sub postfix:<𒋦>($n) { say "$n trilobites" } |
||
Line 554: | Line 554: | ||
3000 IDEOGRAPHIC SPACE</pre> |
3000 IDEOGRAPHIC SPACE</pre> |
||
We enforce the whitespace restriction to prevent insanity in the readers of programs. |
We enforce the whitespace restriction to prevent insanity in the readers of programs. |
||
That being said, even the whitespace restriction is arbitrary, and can be bypassed by deriving a new grammar and switching to it. We view all other languages as dialects of |
That being said, even the whitespace restriction is arbitrary, and can be bypassed by deriving a new grammar and switching to it. We view all other languages as dialects of Raku, even the insane ones. <tt>:-)</tt> |
||
=={{header|REXX}}== |
=={{header|REXX}}== |