Read · Lineage

Perl 6's Ideas in Other Languages

N.B. This material was collected and structured automatically, and may contain unintentional mistakes. Every claim links its source: please check it before relying on a detail.

What other languages took from the Perl 6 design after 2000, which of its ideas they reached on their own, and what came to both from an older source. Each verdict comes from the adopting language’s own records.

Perl 6 specified most of its signature features between 2000 and 2004. That was often years before C#, Swift, Kotlin, Rust, Julia or modern Python shipped something similar. Did those languages take the ideas from Perl 6? This study checks each case against the adopting language's own design records.

What the records show

FindingDetails
Five documented borrowings outside the Perl familySwift 4's rule for indented multi-line strings shipped exactly as Perl 6 designed it. Ruby took the -> arrow, PHP 8.3 followed Raku's string increment, Swift's regex design drew on Perl 6, and JavaScript's Joose took Perl 6's object model by way of Perl 5's Moose.
Perl 5 took the most//, say, state, given/when, ~~, \h/\v, two backtracking verbs, Moose, Regexp::Grammars and the design of the 5.38 class feature all trace to Perl 6. Even use feature began in 2002 as a use perl6ish pragma for them.
Smartmatch took its own pathPerl 5 copied smartmatch while Perl 6's design of it was still changing. Larry Wall apologised for the mismatch two weeks after 5.10.0 shipped. Perl 5 deprecated it in 2023, and it survives behind feature flags.
Many look-alikes were reached independentlyIndentation-stripping heredocs (outside Swift and Perl 5), half-open ranges, implicit lambda parameters, keyword-only arguments, command-line interfaces generated from signatures, optional typing.
Others share an older ancestorThe 2003 Traits paper, CLOS and Dylan, APL and NumPy, CLU and Icon generators, Unix pipes, Ada subtypes, Unicode UAX #29, C# async and Rx.
Perl 6 also built on earlier workJunctions and switch began as Damian Conway's Perl 5 modules in August 2000. Roles came from the Traits paper, and Supplies from Rx.
Raku's most distinctive ideas are still its ownJunctions, hyper-operators, Whatever-currying, NFG synthetic graphemes, grammars as classes and slangs have no documented adopter outside the Perl family. Swift, F# and Julia core members discussed junctions or NFG in writing and chose other designs.

Why the records rarely name Perl 6

How it was checked

Every claim links its primary source. A numbered marker after a link means the page says what that source says, in “What the sources say” under the paragraph or table. Those lists are folded: click one, or a marker, to open it. There each source is given in our words, or as a quotation where its exact wording has been added.

The chapters

  1. 1Perl 6 was years ahead in design: the timelineWhen Perl 6 proposed, specified and implemented each idea: the RFCs of 2000, the Apocalypses to 2004, Pugs in 2005, Rakudo to 6.c in 2015. Also the verdict scale used on every page.
  2. 2Five documented borrowings outside the Perl familyThe five adoptions outside the Perl family whose own records name Perl 6: Swift’s heredoc rule, Ruby’s ->, PHP’s string increment, Swift regex at the design stage, and Joose by way of Moose.
  3. 3Designers elsewhere studied Perl 6's ideas in more than thirty recordsMore than thirty records in which another language’s designers raised a Perl 6 idea: who proposed what, and what shipped.
  4. 4Perl 5 took the most from Perl 6The biggest importer: say, state, given/when, //, the feature pragma, smartmatch and Moose, credited in perl5-porters threads and module documentation.
  5. 5Other languages reached many of the same ideas independentlyLook-alikes whose documented origin is elsewhere: heredoc dedent, half-open ranges, implicit lambda parameters, keyword-only arguments, CLIs from signatures, gradual typing.
  6. 6Shared ancestors, and what Perl 6 built onWhere both sides descend from an older source (the Traits paper, CLOS, APL, Unicode, Rx), what Perl 6 itself built on, and the ideas that are still Raku’s own.
  7. 7Perl 6 also travelled through people, Parrot and debates on language changeInfluence through people and infrastructure: Pugs and the Haskell community, Parrot in virtual-machine research, and Perl 6 in other languages’ debates on big changes.
  8. 8ConclusionWhich ideas crossed, which are still Raku’s own, and what that means for an implementer.
  9. 9How this was researchedWhat was searched (proposal archives, forums, mailing lists, issue trackers, 228 JEPs) and what is still unsearched.