Unicode variable names: Difference between revisions

Rename Perl 6 -> Raku, alphabetize, minor clean-up
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
Line 61:
{{out}}
<pre> 42</pre>
 
=={{header|ALGOL 68}}==
The definition of Algol 68 is character set independent. Not only variables may be represented in Unicode, all other language elements may be so represented. All that is required is that the representation language must be capable of being translated unambigously back and forth into the reference language.
Line 226 ⟶ 227:
Readln;
end.</lang>
 
=={{header|Déjà Vu}}==
<lang dejavu>set :Δ 1
set :Δ ++ Δ
!. Δ</lang>
 
=={{header|DWScript}}==
Line 238 ⟶ 234:
Inc(Δ);
PrintLn(Δ);</lang>
 
=={{header|Déjà Vu}}==
<lang dejavu>set :Δ 1
set :Δ ++ Δ
!. Δ</lang>
 
=={{header|EchoLisp}}==
Line 247 ⟶ 248:
🔦 Look at ∆-🍒 : 2
</lang>
 
=={{header|Elena}}==
ELENA 4.x:
Line 407 ⟶ 409:
2
</pre>
 
=={{header|Lily}}==
<lang Lily>var Δ = 1
Δ += 1
print(Δ.to_s())</lang>
 
=={{header|Lingo}}==
Line 421 ⟶ 428:
put Δ
-- result is 2</lang>
 
=={{header|Lily}}==
<lang Lily>var Δ = 1
Δ += 1
print(Δ.to_s())</lang>
 
=={{header|LOLCODE}}==
Line 609 ⟶ 611:
 
One can have Unicode in identifier or subroutine names and also in package or class names. Use of Unicode for the last two purposes is, due to file and directory names, dependent on the filesystem.
 
=={{header|Perl 6}}==
Perl 6 is written in Unicode so, with narrow restrictions, nearly any Unicode letter can be used in identifiers.
 
See Perl 6 Synopsis 02. - http://perlcabal.org/syn/S02.html#Names
<lang perl6>my $Δ = 1;
$Δ++;
say $Δ;</lang>
Function and subroutine names can also use Unicode characters: (as can methods, classes, packages, whatever...)
<lang perl6>my @ᐁ = (0, 45, 60, 90);
 
sub π { pi };
 
sub postfix:<°>($degrees) { $degrees * π / 180 };
 
for @ᐁ -> $ಠ_ಠ { say sin $ಠ_ಠ° };
 
sub c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ { 'HE COMES' }</lang>
<br>
 
'''See Also:'''<br>
[[Egyptian_division#More_.22Egyptian.22_version|Egyptian division]]
 
=={{header|Phix}}==
Line 728 ⟶ 708:
2
>>> </lang>
 
 
=={{header|R}}==
Line 758 ⟶ 737:
 
</lang>
 
=={{header|Perl 6Raku}}==
(formerly Perl 6)
Perl 6 is written in Unicode so, with narrow restrictions, nearly any Unicode letter can be used in identifiers.
 
See Perl 6 Synopsis 02. - http://perlcabal.org/syn/S02.html#Names
<lang perl6>my $Δ = 1;
$Δ++;
say $Δ;</lang>
Function and subroutine names can also use Unicode characters: (as can methods, classes, packages, whatever...)
<lang perl6>my @ᐁ = (0, 45, 60, 90);
 
sub π { pi };
 
sub postfix:<°>($degrees) { $degrees * π / 180 };
 
for @ᐁ -> $ಠ_ಠ { say sin $ಠ_ಠ° };
 
sub c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ { 'HE COMES' }</lang>
<br>
 
'''See Also:'''<br>
[[Egyptian_division#More_.22Egyptian.22_version|Egyptian division]]
 
=={{header|Retro}}==
10,327

edits