Perl 6
Perl 6 is an actively used programming language created in 2015. Perl 6 (also known as Raku) is a member of the Perl family of programming languages.While historically several interpreter and compiler implementations were being written, today only the Rakudo Perl 6 implementation is in active development. It is introducing elements of many modern and historical languages. Compatibility with Perl 5 is not a goal, though a compatibility mode is part of the specification. Read more on Wikipedia...
5Years Old | 25Users | ?Jobs |
- Perl 6 ranks in the top 10% of languages
- the Perl 6 website
- the Perl 6 wikipedia page
- Perl 6 first appeared in 2015
- file extensions for Perl 6 include 6pl, 6pm, nqp, p6, p6l, p6m, pl, pl6, pm, pm6 and t
- tryitonline has an online Perl 6 repl
- See also: perl, haskell, javascript, ruby, smalltalk, rfc, python, java, squeak, regex, peg, antlr, icon, isbn
- Have a question about Perl 6 not answered here? Email me and let me know how I can help.
Example code from Linguist:
# used in t/spec/S11-modules/nested.t BEGIN { @*INC.push('t/spec/packages') }; module A::A { use A::B; } # vim: ft=perl6
Example code from Wikipedia:
multi sub hanoi(0, $, $, $) { } # No disk, so do not do anything multi sub hanoi($n, $a = 'A', $b = 'B', $c = 'C') { # Start with $n disks and three pegs A, B, C hanoi $n - 1, $a, $c, $b; # firstly move top $n - 1 disks from A to B say "Move disk $n from peg $a to peg $c"; # then move last disk from A to C hanoi $n - 1, $b, $a, $c; # lastly move $n - 1 disks from B to C }
Trending Repos
repo | stars | description |
---|
Last updated August 9th, 2020