Jump to content

Unicode strings: Difference between revisions

m
→‎{{header|Raku}}: Even more Unicodey
(add Zig)
m (→‎{{header|Raku}}: Even more Unicodey)
Line 1,222:
Raku programs and strings are all in Unicode and operate at a grapheme abstraction level, which is agnostic to underlying encodings or normalizations. (These are generally handled at program boundaries.) Opened files default to UTF-8 encoding. All Unicode character properties are in play, so any appropriate characters may be used as parts of identifiers, whitespace, or user-defined operators. For instance:
 
<syntaxhighlight lang="raku" line>sub prefix:<∛> (\𝐕) { 𝐕 ** (1/3) }
say ∛27; # prints 3</syntaxhighlight>
 
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.