Raku Cases › Syntax & parsing

Syntax & parsing

How source text is read: terms and operators, quoting, comments, statement ends, what binds to what.

305 rules from 200 tests. 176 of those tests are confirmed on both engines: Raku++ and Rakudo 2026.11 both pass, or Raku++ gives Rakudo's answer on every probe of a family. The verdict is the test's, not each rule's. How to read a case.

adverb-on-a-termRaku++ matches Rakudo on 35 of 40 probes2026-11-29 · 38c09ed9
  1. 2

    An adverb modifies the operator before it, such as a subscript, a call or an infix.

    %h<a>:exists, f(1):named, 1 + 2 :foo

enum-argumentsRaku++ matches Rakudo on 21 of 29 probes2026-11-28 · 04a1722e · #287
  1. 2

    The argument of enum is an expression, and every member it yields is declared as a term.

type-name-is-a-termRaku++ matches Rakudo on 16 of 33 probes2026-11-29 · 38c09ed9
  1. 2

    Only a routine's name takes what follows it as its argument; a class, role, enum, subset, native type or package-qualified type name does not.

word-infix-in-term-positionRaku++ matches Rakudo on all 24 probes2026-11-29 · 38c09ed9
  1. 2

    What a word infix in term position names decides the outcome, alike for every word and position: a routine the program declares, a sigilless term, a setting routine (min, max), or nothing.

amp-brace-term-is-the-blockRaku++ passesRakudo passes2026-10-29 · bf64a45d · #60
  1. 1

    &{ … } is a term, the block (or hash) itself, as &( … ) is the Callable contextualizer: in parentheses, as an argument and after a listop.

    say &{ 42 }() calls the block, and f &{ … } passes it to f

angle-list-dollar-caretRaku++ passesRakudo passes2026-07-22 · 60a51a27
  1. 1

    Inside a < ... > word list everything is a word, so $^A-style text raises no X::Syntax::Perl5Var error.

    for < $^A $^B > { } parses

angle-subscript-glued-infixRaku++ passesRakudo passes2026-09-23 · 54a33e65
  1. 1

    An operator starting with = may be glued to the > that closes an angle subscript: the > closes the subscript and the rest is the operator.

    %h<a>==0 parses as %h<a> == 0; likewise ===, =~=, =:=, ==> and =>

angle-subscript-hash-commentRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 1

    A # inside an angle-bracket subscript is a literal character, not the start of a comment.

    %exts<#csv> looks up the key #csv

angle-words-nest-by-characterRaku++ passesRakudo passes2026-10-02 · 99f09017
  1. 1

    A <…> word list nests its angle brackets by character.

    <a <=> b> holds the word <=>

  2. 2

    In a <…> word list the first > with no < open closes the list, even after a space.

    < a >= b > is a syntax error

More from this test: Operators (1).

angle-words-starting-with-equalsRaku++ passesRakudo passes2026-10-07 · c0496b90
  1. 1

    In term position — after =, or spaced after a listop such as say — <= is the opening angle of a word list whose first word starts with =, not an infix.

    say <= a> is a word list; f <= 3 is an unterminated one

anon-class-statement-takes-infix-and-modifierRaku++ passesRakudo passes2026-11-13 · 70ee4e8b · rakudo#1360 · rakudo#2078
  1. 1

    An anonymous class { … } that opens a statement is a term like any other: a statement modifier may follow it, and an infix may follow its postfix chain.

    class { … } for ^5 and class { has $.z is rw }.new.z = 42 compile

anton-batch-2026-09-12Raku++ passesRakudo passes2026-09-12 · 6b2a1718
  1. 3

    A leading || in term position is a prefix operator taking one term, so an expression may open with || before its first operand and still evaluates as the logical chain, while @a[|| @dims] keeps its subscript meaning. inferred

    my $x = || 1 == 2 || 3 == 3; gives True

More from this test: Containers & assignment (1), Operators (1).

arity-lax-callersRaku++ passesRakudo does not pass2026-07-22 · 9227c3ee
  1. 5

    A subscript written tight against a routine name, foo[10], indexes the result of calling foo; it is not a listop argument.

More from this test: Compile-time errors (1), Signatures & dispatch (3).

assoc-index-on-scalar-diesRaku++ passesRakudo passes2026-08-24 · f8b6f8c3
  1. 2

    In a double-quoted string a <…> directly after a variable is a subscript on that variable.

    in "<div>$a$b</div>", $b</div> is read as $b<'/div'>

More from this test: Hashes & sets (1).

audited-language-gaps-1Raku++ passesRakudo passes2026-10-04 · 76f5426d
  1. 2

    return() written tight returns Nil, and return () returns the empty List.

  2. 3

    %h<=> glued to its term is a subscript with the key =.

More from this test: Concurrency (1), Containers & assignment (1), Exceptions & control flow (1), Hashes & sets (1), Lists & laziness (2), Operators (1), Regexes & grammars (2), Signatures & dispatch (3).

bare-type-is-an-anonymous-slotRaku++ passesRakudo passes2026-09-15 · e1b41314
  1. 1

    A bare type inside a list declaration is an anonymous slot: that position is skipped and nothing is declared for it.

    my ($q1, Any, $q2) = quartiles(@x) takes the first and third values

bare-whatever-before-a-closing-bracketRaku++ passesRakudo passes2026-09-11 · cc95e49f
  1. 1

    A bare * as the only argument of a listop directly before a closing ] or } is a Whatever term, not an infix.

    :args[ast-value *] calls ast-value with a Whatever

batch11-parse-clusterRaku++ passesRakudo passes2026-07-23 · 9baeff7c
  1. 1

    The pointy parameter of an if or elsif may carry a trait, as in if $x -> $y is copy { $y++ }. inferred

  2. 4

    An indented =begin comment … =end comment pod block inside a sub body is skipped whatever brackets it contains. inferred

  3. 5

    An enum declaration may carry a trait with an argument before its value list, as in enum E is export(:tag) < A B C >. inferred

More from this test: Operators (1), Regexes & grammars (2), Signatures & dispatch (1).

batch11b-typed-blobsRaku++ passesRakudo passes2026-07-23 · 9baeff7c
  1. 4

    The argument list after a method-call colon extends over a Z+ expression, so blob32.new: A Z+ B passes the zipped result. inferred

  2. 5

    (expr;) with a trailing semicolon is the grouped value, not a one-element list, while (1,2;3,4) is a two-element list. inferred

    (5;) === 5

More from this test: Numerics (2), Types & coercion (2).

bound-attribute-truthinessRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 3

    The character … inside a < … > word list is a literal character of the word, not the ... operator.

    <f…z fo…az> holds words of 3 and 5 characters

More from this test: Containers & assignment (1), Lists & laziness (1).

brace-subscript-after-routine-callRaku++ passesRakudo passes2026-11-13 · fcc6d577 · rakudo#5144
  1. 1

    A {…} tight against a routine's name subscripts what the call answers, while with a space between them the block is the routine's argument.

    T{"max-rss"} subscripts the result of calling T

builtin-operator-called-by-nameRaku++ passesRakudo passes2026-11-08 · 75326b8b
  1. 3

    The guillemet and double-angle spellings of an operator's name call the operator.

    infix:«<=»(1, 2) and infix:<<∈>>(…)

More from this test: Operators (2).

callable-context-callme-rawRaku++ passesRakudo passes2026-07-30 · 3f4c5290
  1. 1

    &(EXPR) is the Callable contextualizer: its result can be called directly and it is accepted as a listop argument.

    &(%encodings{$encoding})($buf) calls the stored routine

More from this test: Classes, roles & the MOP (1), Signatures & dispatch (1).

cbor-and-nqp-buffer-opsRaku++ passesRakudo does not pass2026-07-24 · 21e46c1a
  1. 5

    A prefix +^, ~^ or ?^ expression is accepted as a call or listop argument after a comma.

More from this test: Numerics (1), Types & coercion (2).

chained-angle-quoted-keyRaku++ passesRakudo passes2026-11-25 · 82f6aba0 · #285
  1. 1

    <…> is a word list wherever it is written, so quotes inside a <…> subscript are part of the key.

    %a<a><'b-c'> reads the key 'b-c', quotes and all

    Also held by angle-subscript.

class-range-spaces-set-identity-aliasRaku++ passesRakudo passes2026-08-20 · f730e79e
  1. 3

    A { … } mentioning @_ or %_ is a Block, as one mentioning $_ is.

    .map: { @_[0] => @_[1] } maps with a block

More from this test: Containers & assignment (1), Operators (1), Regexes & grammars (1).

class-traits-and-module-gatesRaku++ passesRakudo cannot run it2026-07-30 · 215c3e29
  1. 3

    class A is export(:TAG) {…} takes the tag list as the trait's argument, leaving the next statement intact.

  2. 4

    A subset declaration takes traits and of in either order, as in subset S is export of Mu where ….

More from this test: Classes, roles & the MOP (2), Signatures & dispatch (1).

colon-arg-anon-class-hasRaku++ passesRakudo passes2026-07-22 · 60a51a27
  1. 1

    has inside an anonymous class body passed as a colon-argument (Seq.new: class :: { has ... }) parses without a has-outside-a-class error.

colon-call-int-arg-then-less-thanRaku++ passesRakudo passes2026-10-18 · fff74a84
  1. 1

    A colon method call takes whitespace after its colon, so an integer literal first argument followed by < is a comparison; a radix pair such as :16<FF> is glued to its colon.

    .grep: 60 < * < 70 compares

colon-listop-paren-argRaku++ passesRakudo passes2026-08-26 · e25ccecb · #34
  1. 1

    In the colon-listop method call form a single parenthesised group is one argument, while a top-level comma separates arguments.

    @q.push: ($a, $b, $c, $d) pushes one four-element List; push: (1,2), (3,4) passes two

colonpair-digits-regex-keyRaku++ passesRakudo passes2026-10-27 · cb5b360a
  1. 1

    In a colonpair of the form :4m the name after the digits is the pair's key, even when it spells a quote word such as m, s or rx.

    :4m, :5s is the two pairs m => 4 and s => 5

colonpair-key-may-be-unicodeRaku++ passesRakudo passes2026-09-15 · 9ad1caac
  1. 1

    A colonpair key is an identifier and may be any Unicode letter, including inside <<…>> word quoting.

    <<:måndag(1) tisdag>> reads :måndag(1) as a pair

colonpair-value-takes-statement-modifiersRaku++ passesRakudo passes2026-09-15 · e1b41314
  1. 1

    A colonpair's parenthesized value may contain a statement modifier, as plain parentheses may.

    :title( S/(' ')$// given @element[0] ~ @element[1] ) parses

conformance-phase3-containersRaku++ passesRakudo passes2026-07-25 · 4ab9323f
  1. 4

    \(…) captures exactly the parenthesised group, so in \(1,2).list the method is called on the Capture.

More from this test: Lists & laziness (1), Numerics (1), Stringification (1).

contextualizer-modifiers-and-dirRaku++ passesRakudo does not pass2026-07-24 · c85fe2f8
  1. 1

    A statement modifier is allowed inside a sigil contextualizer: @(EXPR for LIST), @(EXPR if COND), $(EXPR for LIST).

More from this test: I/O & processes (1).

contextualizer-postfix-bindingRaku++ passesRakudo passes2026-07-27 · 2002889e
  1. 1

    A postfix after a sigil contextualizer on a variable applies to the contextualized value: @$p[0] is (@$p)[0] and %$x<a> is (%$x)<a>.

core-type-roles-and-iterator-defaultsRaku++ passesRakudo passes2026-10-04 · 289f1691
  1. 6

    A role named like a quote keyword and followed by brackets, my role Q[&f], is a parameterized role, not a quote.

More from this test: Lists & laziness (1), Classes, roles & the MOP (4).

corner-quote-not-a-declarationRaku++ passesRakudo passes2026-10-10 · ff182274
  1. 1

    A class Q or sub q written inside a 「…」 string is text, not a declaration, so a later Q「…」 is still a quote.

    after Q「class Q { }」, a later Q「…」 is a string

cro-family-clusterRaku++ passesRakudo passes2026-07-23 · d7b9d40e
  1. 7

    A subset declaration accepts traits before where, as in subset X of Str is export where /…/.

  2. 8

    A private method call takes colon-listop arguments, as in self!setup: { }, :$enc.

More from this test: Hashes & sets (1), Lists & laziness (1), Classes, roles & the MOP (2), Regexes & grammars (3).

cro-install-engine-fixesRaku++ passesRakudo passes2026-10-10 · 29f5aa55
  1. 2

    { name <word> => … } is a block holding a call with an angle-quoted argument, not a subscript on name.

    { delegate <foo> => $app } calls delegate

  2. 16

    A / inside << … >> or « … » is a word character.

More from this test: Concurrency (4), I/O & processes (1), Lists & laziness (1), Classes, roles & the MOP (1), Regexes & grammars (1), Signatures & dispatch (7), Strings & Unicode (1).

cro-live-clusterRaku++ passesRakudo passes2026-07-23 · 3c1b7a9e
  1. 2

    A pointy block is accepted as a listop argument (get -> { … }), while in for @a -> $x { } the pointy block is the loop's own block.

  2. 6

    state => v is a Pair whose key is state, not a variable declaration.

More from this test: Containers & assignment (1), Modules (1), Classes, roles & the MOP (2), Scoping & phasers (1), Signatures & dispatch (1).

data-dump-clusterRaku++ passesRakudo passes2026-08-05 · b531a8bc
  1. 1

    A quoted brace inside a code block interpolated into a string stays text and does not open or close the block.

    "A{sym('{')}B" is A{B

More from this test: Classes, roles & the MOP (5), Stringification (1).

dbdish-native-and-list-defectsRaku++ passesRakudo passes2026-08-25 · 5faed01f · #28
  1. 9

    [ v ] around a sigilless term is a term (an array composer), not a reduction metaoperator. inferred

  2. 17

    A q:to heredoc unescapes \\ to a single backslash.

More from this test: Containers & assignment (2), Lists & laziness (1), Native types & NativeCall (5), Classes, roles & the MOP (3), Regexes & grammars (3), Signatures & dispatch (1).

declaration-list-routine-itemsRaku++ passesRakudo passes2026-11-13 · 953adf0a · rakudo#2336
  1. 1

    A & item in a declaration list may take a signature after it, and declares a routine name the program may call.

    my (&op:(Int, Int --> Int)) = … parses, and after my (&op) = …, op(2, 3) calls it

  2. 2

    The signature written after a & item in a declaration list is not checked against what is assigned.

declarator-doc-attachmentRaku++ passesRakudo does not pass2026-09-28 · bc97334e
  1. 1

    A #| declarator comment documents the next declaration or block however far below; blank lines and code that declares nothing leave it pending.

  2. 2

    A #| comment attaches to the first declaration after it only, not to every declaration on that line.

  3. 3

    A #= comment after several declarations on one line documents the last of them.

  4. 4

    An anonymous sub { takes the #= comment just inside its opening brace.

dist-suite-quartetRaku++ passesRakudo passes2026-08-05 · 4e2c20cd
  1. 8

    qqww honours quote protection and processes escapes.

  2. 9

    In << … >> a colonpair word such as :TRACE(1) is a Pair, and in an enum declaration it seeds the numbering of the keys after it.

    <<:TRACE(1) DEBUG>> holds a Pair and a word

  3. 19

    $?LINE interpolates in a double-quoted string, giving the current line number.

More from this test: Dates & times (1), Exceptions & control flow (1), I/O & processes (1), Classes, roles & the MOP (4), Operators (1), Everything else (1), Regexes & grammars (2), Scoping & phasers (1), Signatures & dispatch (2), Stringification (1), Types & coercion (2).

do-statement-modifier-then-outer-modifierRaku++ passesRakudo passes2026-10-08 · 1305af21
  1. 1

    A statement prefix such as do takes one statement modifier for its statement and leaves a following modifier to the enclosing statement.

    do return False unless … if $!ver; parses

  2. 2

    A single expression takes at most one conditional statement modifier: (1 if $x if $y) is refused. inferred

eco-blockers-2026-09-14Raku++ passesRakudo passes2026-09-14 · 3b6b50af
  1. 4

    An enum's value list is a term and a trait may follow it.

    enum Level <Off Fatal Error> does role { … }

  2. 6

    A declarator keyword can serve as a declared name, as in constant class = Foo.

    constant class = Foo

More from this test: Exceptions & control flow (1), I/O & processes (2), Operators (2), Signatures & dispatch (1), Stringification (1).

ecosweep-900-batchRaku++ passesRakudo passes2026-09-09 · 063a5a1a
  1. 12

    The anon declarator is supported. inferred

More from this test: Containers & assignment (1), I/O & processes (1), Lists & laziness (4), Numerics (1), Operators (2), Regexes & grammars (1), Signatures & dispatch (2), Stringification (1).

ecosweep-batch-fiveRaku++ passesRakudo passes2026-08-25 · 6879a71b
  1. 1

    A trait accepts an angle-bracket value.

    is repr<CStruct> and is symbol<getuid>

More from this test: Hashes & sets (1), Native types & NativeCall (2), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (1), Scoping & phasers (2), Signatures & dispatch (4), Types & coercion (2).

ecosweep-condition-binders-and-hyperRaku++ passesRakudo passes2026-08-23 · fe22cacc
  1. 1

    A statement condition accepts a sigilless binder after the arrow.

    if EXPR -> \name { }

embedded-comment-guillemetsRaku++ passesRakudo passes2026-09-16 · b22d82fc
  1. 1

    An embedded comment (# followed by a backtick and an opening bracket) takes any bracket pair, including «…» and a repeated opener such as «««…»»».

embedded-comment-repeated-bracketsRaku++ passesRakudo passes2026-08-23 · 085cd462
  1. 1

    An embedded comment opened with a repeated bracket, `#`{{ … }}`, closes only on the closer repeated as many times, and a lone bracket inside is literal text, not a nesting level.

    `#`{{ if $x { }}` is a complete comment

empty-before-pointy-blockRaku++ passesRakudo passes2026-11-08 · e00e905c
  1. 1

    Empty is a term, as now, e, pi and rand are, so a block or a pointy block after it belongs to the statement.

    for Empty -> $x { } runs

enum-and-type-terms-before-infixRaku++ passesRakudo passes2026-10-21 · c92b7789
  1. 1

    A core enum member, a qualified enum member and a type name are terms before an infix, not listop calls taking what follows as arguments.

    Less R+ More reverses a +, and Less < More, More > Same is two comparisons

  2. 2

    A spaced < after a type name is the less-than infix whatever follows, while the tight Int<a> stays the postcircumfix.

    C < 2, 3 > 2 is two comparisons

enum-colonpair-word-listRaku++ passesRakudo passes2026-11-25 · 8e5485ec · #287
  1. 1

    An enum whose << … >> word list sets a starting value with a colonpair declares every member as a term.

    enum numbers << :one(1) two three >>; for one, two { say .Int } parses

    Also held by enum-arguments.

enum-does-role-and-archetypesRaku++ passesRakudo passes2026-11-13 · 73357985 · rakudo#3376
  1. 1

    In an enum declaration a does R may come before the value list as well as after it.

    enum E does R <a b> parses, and in enum G does R2 (p => 1) R2 is the role, not a coercion of the pair list

More from this test: Classes, roles & the MOP (1).

enum-member-is-a-termRaku++ passesRakudo passes2026-10-07 · fcbc61d4
  1. 1

    An enum member is a term, as a constant is, so an operator after it is an infix and not the start of a listop argument.

    LO -1, LO ~ "x", north <= $v and if LO < $v { … } are infix expressions

More from this test: divergences (1).

enum-type-object-is-one-itemRaku++ passesRakudo passes2026-10-29 · 5e611fa3 · #216
  1. 2

    An enum's or a subset's name before an infix is a term, so MyEnum ~ "x" is a concatenation, not the coercion MyEnum(~"x").

More from this test: Types & coercion (2).

escaped-operator-nameRaku++ passesRakudo passes2026-10-29 · 12015e48 · #60
  1. 1

    Inside the angle brackets of an operator's name \< is <, \> is > and \\ is \, only an unescaped > closes the name, and any other backslash stays.

    sub infix:<(\<&)> declares the operator (<&), and infix:<\o/> is \o/

export-tags-and-package-stashesRaku++ passesRakudo passes2026-10-27 · aff5032b · #202
  1. 4

    The adverbs :p, :k, :v, :kv, :!p and :delete, and a slice, on Foo::<$x> subscript the package's Stash.

    Foo::<$x>:p is one Pair from the Stash, not the value and a separate p => True

More from this test: Modules (4).

fallback-nil-and-slicesRaku++ passesRakudo passes2026-07-31 · e1679c33
  1. 2

    A sigilless constant is a term, so an operator after it is an infix, not a prefix on a listop argument.

    CSI ~ $s is a concatenation, not a call of CSI with ~$s

More from this test: Containers & assignment (2), Lists & laziness (1), Classes, roles & the MOP (1).

flipflop-and-nil-termRaku++ passesRakudo passes2026-07-28 · ccc187ec
  1. 1

    Nil is a term, never a routine, so Nil ~ 1 and Nil ff 1 parse with Nil as the left operand.

More from this test: Hashes & sets (1), Operators (2).

forward-types-and-statement-endRaku++ passesRakudo passes2026-08-20 · c3ba0e42
  1. 2

    A block-closing } at the end of a line ends the statement, so a following line that starts with .method is a new statement.

    @a .= sort: { .chars } followed by a line .sum given … is two statements

More from this test: Types & coercion (1).

fresh100-parse-cluster-and-hostnameRaku++ passesRakudo passes2026-08-20 · 66345296
  1. 2

    A slurpy marker is allowed in a declaration list.

    my ($key, *@path) = …

  2. 4

    A pointy parameter on a statement condition may be typed.

    if EXPR -> str $name { }

  3. 5

    Statement modifiers chain: a when modifier can be followed by a for modifier.

    $_ .= Str when Str for @list

  4. 6

    After a parenless call, with is a statement modifier, not an argument.

    output-w with $w-first calls output-w when $w-first is defined

More from this test: I/O & processes (1), Signatures & dispatch (1).

generic-role-bodiesRaku++ passesRakudo does not pass2026-09-28 · b47d945a
  1. 4

    A statement-initial T:D is a type, not the label T:, because a label needs whitespace after its colon.

    (do { Int:D }).^name is Int:D

  2. 5

    foo:bar is one undeclared name, while so:bar is still so applied to a pair.

    foo:bar; is X::Undeclared::Symbols

More from this test: Classes, roles & the MOP (5), Scoping & phasers (1).

goal-operator-and-term-categoryRaku++ passesRakudo passes2026-08-15 · 94ef0788
  1. 2

    sub term:<name> defines a term: name written bare, with no parentheses and no arguments, calls it.

More from this test: Regexes & grammars (1).

grand-review-b-parserRaku++ passesRakudo passes2026-09-06 · fa74f74f
  1. 1

    In a double-quoted string, the name of an interpolated method call may contain hyphens.

    "$n.is-prime()" interpolates the result of the call

  2. 2

    In a double-quoted string, a method call with parentheses interpolates after $/, $!, $0, $<x> and ordinary variables alike, while a method name without parentheses stays literal text.

    "$0.uc()" interpolates; "$!.message" keeps .message literal

  3. 7

    A class may be named SS or ss: SS.n is a method call, not a substitution.

  4. 9

    A statement-leading { $d.uc => 1 } is a Hash constructor, exactly as the same braces are in expression position.

  5. 13

    A # inside a < > word list that follows a listop is a word, not a comment.

    any <# x> is a junction of the words # and x

More from this test: Compile-time errors (3), Lists & laziness (1), Regexes & grammars (2), Signatures & dispatch (1), Strings & Unicode (1).

guillemet-subscriptRaku++ passesRakudo does not pass2026-09-23 · f8296182
  1. 1

    %h«…» and %h<<…>> are the interpolating word subscript, the same as %h{«…»}: the words interpolate, an interpolated value splits on whitespace, and one word is a single key rather than a one-key slice.

    %h«a»==1 compares the element

  2. 2

    In a «…» list a single word is that one value, an interpolated variable splits on whitespace, a variable glued to text stays one word, a quoted "$y" stays one word, and {…} interpolates the block's value.

    «a» is "a"; «$y» splits "a b" into two words

  3. 3

    A quoted number inside «…», such as «"4.5"», goes through val(). inferred

More from this test: Strings & Unicode (1).

has-in-sub-in-classRaku++ passesRakudo passes2026-07-22 · 60a51a27
  1. 1

    has inside a sub nested in a class body parses without a has-outside-a-class error.

hash-composer-prefixed-keyRaku++ passesRakudo passes2026-10-14 · 10528bb4
  1. 1

    Braces whose first key is behind a prefix operator or in parentheses, { +(X) => v }, compose a Hash, not a Block.

    constant %sqltype-map = { +(SQLT_CHR) => Str, … } is a Hash

hash-vs-block-and-caps-subsRaku++ passesRakudo passes2026-07-27 · 40bb85d6
  1. 1

    WHAT, WHO, HOW, VAR, WHICH and WHY are routines, so WHAT {3 => 4} applies WHAT to the hash, whereas a capitalized type name before { (as in if Mu {…}) is followed by a block.

  2. 2

    A brace that looks like a hash composer (empty, or opening with a Pair or a % variable) is a Block if it uses the topic at its own level.

    {3 => 4, :b} is a Hash; {3 => 4, :b($_)} and {3 => 4, :b(.Num)} are Blocks

  3. 3

    A topic used only inside a nested block does not turn the outer hash composer into a Block.

    { :out{ .contains: 'x' } } is a Hash whose value is a Block

heredoc-any-delimiterRaku++ passesRakudo passes2026-08-29 · e7947dbe · #31
  1. 1

    The terminator of a q:to heredoc may be written with any quote delimiter, including Unicode pairs and arbitrary characters.

    q:to«END», q:to「END」, q:to「END」 and q:to♥END♥ all open a heredoc ending at END

  2. 2

    Whitespace may separate a quote introducer carrying an adverb from its delimiter, so q :to '' names the empty terminator and a blank line ends the heredoc body.

    q :to '' reads lines up to the first blank line

  3. 3

    A quote form keeps its meaning with a « » delimiter: qw«a b» is a word list and qx«…» runs a shell command.

    qw«a b» is a list of two words

  4. 4

    Without an adverb, q 'x' (space before the delimiter) is a call to a declared sub q, exactly as q('x') is.

heredoc-sub-text-not-declaredRaku++ passesRakudo passes2026-11-09 · f929935a
  1. 1

    A heredoc's body is text: a sub q($x) { … } written inside it declares nothing, so a later q[…] in the file is still a quote.

heredoc-trailing-commentRaku++ passesRakudo passes2026-08-08 · b646cd79
  1. 1

    Text after a heredoc introducer on the same line, such as a trailing comment or spaces, does not consume the heredoc's first body line.

    after q:to/A/; # a note the body starts on the next line

highlight-namesRaku++ passesRakudo cannot run it2026-10-20 · e96dc75b
  1. 2

    A - or ' continues an identifier only inside it and only when a letter follows, so $n-1 reads as $n - 1.

    $n-1 is $n - 1

highlight-quotes-word-lists-shiftsRaku++ passesRakudo cannot run it2026-10-23 · 184c423c
  1. 2

    The Unicode quote pairs “…”, „…”, „…“ and ”…” interpolate, ‘…’, ‚…’, ‚…‘ and ’…’ do not, and 「…」 has no escapes.

http-simple-clusterRaku++ passesRakudo passes2026-08-02 · 2f4479d5
  1. 1

    After next, last or redo, the words with and without are statement modifiers, not loop labels.

    for 1, Int, 3, Int, 5 -> $x { next without $x; @kept.push($x) } keeps [1, 3, 5]

More from this test: Types & coercion (1).

http-useragent-clusterRaku++ passesRakudo passes2026-08-05 · 271e54e8
  1. 2

    A hash composer may contain a hyper method call, whose dot calls on the term before the hyper marker and not on the topic.

    { a => 1, b => $s.split(',')>>.trim } is a Hash, not a Block

  2. 8

    A phaser keyword followed immediately by a parenthesis is a routine call, not a phaser.

    POST($u, |%n) calls the user's sub POST

More from this test: Classes, roles & the MOP (1), Everything else (1), Regexes & grammars (3), Signatures & dispatch (1).

hyperwhateverRaku++ passesRakudo passes2026-07-25 · d59d3514
  1. 1

    ** in term position — after a comma, or as a bare listop argument — is a HyperWhatever, not the exponentiation infix.

More from this test: Operators (1).

hyphen-continues-a-name-in-a-replacementRaku++ passesRakudo passes2026-09-15 · 148f566b
  1. 1

    A hyphen or apostrophe followed by a letter continues an identifier everywhere, including a variable name interpolated in the replacement half of s///.

    $commit-sep in an s/// replacement is one variable, not $commit followed by -sep

hyphen-ident-vs-subtractionRaku++ passesRakudo passes2026-07-23 · d9a816f3
  1. 1

    A - or ' continues an identifier only when a letter or _ follows, never a digit, so $x-1 is $x - 1.

    $x.elems-1 is $x.elems - 1, not a method named elems-1

    Also held by ident-continuation-and-native-return-boundary.

indirect-declarationsRaku++ passesRakudo passes2026-08-12 · 3e238862
  1. 1

    class ::(name) and sub ::(name) declare a type or routine under the name the expression evaluates to, and method names may be indirect too.

interp-postcircumfix-callRaku++ passesRakudo passes2026-09-04 · 8f3afb3a · #65
  1. 1

    In a double-quoted string, (…) directly after a variable is a call postfix: "$c(3)" calls the Callable in $c and interpolates the result, and "@a(0)" or "%h(0)" reach CALL-ME on the Array or Hash and die.

    "$c(3)" interpolates the result of $c(3)

More from this test: divergences (1).

interpolated-hyper-method-chainRaku++ passesRakudo passes2026-11-13 · 6b8c1d1a · rakudo#1460
  1. 1

    A hyper method call ».name joins an interpolated variable's method chain in a double-quoted string, and the chain interpolates up to its last parenthesised call.

    "%add».sort.map(*.fmt("%s %s"))" interpolates the whole chain

  2. 2

    In an interpolated method chain a hyper link is taken only where no bare .name link is still pending. inferred

invocant-smiley-and-role-multisRaku++ passesRakudo does not pass2026-07-30 · cb88278b
  1. 8

    will complain { … } on a subset declaration parses.

More from this test: Modules (1), Classes, roles & the MOP (2), Signatures & dispatch (4).

is-deeply-strict-and-anton-batchRaku++ passesRakudo passes2026-08-28 · 2421c094
  1. 9

    A Whatever-curried subscript may be a slice.

    (%r, %r).map(*<A B>) is ((1, 2), (1, 2)).Seq for %r = A => 1, B => 2, C => 3

  2. 12

    A zero-width unspace is allowed before a subscript.

    @row\[1] is @row[1]

More from this test: Hashes & sets (1), I/O & processes (3), Lists & laziness (1), Classes, roles & the MOP (3), Operators (3), Everything else (1), Regexes & grammars (2), Signatures & dispatch (1).

issue-131-underscore-identifierRaku++ passesRakudo passes2026-10-07 · b0fd5a32 · #131
  1. 1

    _ starts an identifier, so in "item-$_-x" the interpolated variable is the single name $_-x, not $_ followed by the text -x.

More from this test: Compile-time errors (1).

issue-134-spaced-prefix-boolifyRaku++ passesRakudo passes2026-10-07 · 8b7757aa · #134
  1. 1

    A spaced !! is the ternary's else-marker only while a ?? at the same bracket depth is waiting for one; anywhere else, including after a listop name, it is prefix boolify.

    say !! "Hi" boolifies "Hi" and says it; 1 ?? Nil !! Any keeps its else-marker

issue-137-escaped-quote-in-qq-blockRaku++ passesRakudo passes2026-10-08 · ab01484a · #137
  1. 1

    A backslash-escaped quote in a single-quoted string inside a { } block of an interpolating string does not end that string, so the block and the rest of the outer string are kept.

    "a {'it\'s'} z" is not a

issue-198-titlecase-sub-block-argRaku++ passesRakudo passes2026-10-27 · 67a2fe76 · #198
  1. 1

    A capitalized sub name followed by a block calls the sub with the block, when the unit (above or below) or a used module declares a sub of that name and no type has it.

    sub Foo(&bar) { bar }; Foo { say "bar" } calls Foo with the block

issue-223-224-pdf-content-declarationsRaku++ passesRakudo passes2026-11-07 · 1a3f36d1 · #224
  1. 2

    A subset declared of ::?CLASS:D or of ::?ROLE:D takes the is export(…) trait or where clause that follows.

    my subset S of ::?CLASS:D is export(:Tag) parses

More from this test: Signatures & dispatch (1).

issue-43-private-method-quoted-nameRaku++ passesRakudo does not pass2026-08-30 · 71abc700 · #43
  1. 2

    A quoted private method name must be followed by parentheses: self!"$m" without () is not a method call. inferred

More from this test: Classes, roles & the MOP (1).

issue-65-interp-quote-in-postfixRaku++ passesRakudo passes2026-09-04 · 266ee9d2 · #65
  1. 1

    In a double-quoted string the argument list of an interpolated method call is code, so a quote character inside it does not end the string.

    say "\"@strings.join('"|"')\"" interpolates the joined array between two quotes

issue34-pointy-destructureRaku++ passesRakudo passes2026-08-26 · 27b07a35 · #34
  1. 1

    A pointy binder on a statement condition (if/elsif/else, while, given/with/without) accepts a full signature, destructuring sub-signatures included.

    if $result.errors -> @ ($head, *@tail) { … }

issue37-fez-zef-installRaku++ passesRakudo cannot run it2026-08-27 · c63eb77a · #37
  1. 1

    A fused angle-bracket operator spelling tight after a colonpair name is the pair's angle value.

    :replacement<-> is the pair replacement => "-"

  2. 7

    A coercion type with empty parentheses is allowed in a variable declaration.

    my Hash() %options

More from this test: Containers & assignment (1), Modules (3), Regexes & grammars (1), Types & coercion (1).

js-backend-framework-clusterRaku++ passesRakudo passes2026-09-13 · 862e3888
  1. 2

    A declared sub whose name is a word infix such as div is called when the name appears in term position. inferred

    with sub div in scope, say div "x" calls the sub rather than parsing as say() div "x"

  2. 3

    A declared sub whose name is a quote keyword wins over the quote construct unless an adverb follows the name. inferred

More from this test: Operators (1), Scoping & phasers (2), Signatures & dispatch (1), Strings & Unicode (1), Types & coercion (1).

keyword-named-callable-paramRaku++ passesRakudo passes2026-11-08 · 6497dca5
  1. 1

    A keyword written tight against ( calls a &loop parameter, a sub loop or a my &loop of that name.

    sub count(&loop) { loop({ $n++ }) } calls the block

More from this test: Compile-time errors (1).

keyword-named-routine-callRaku++ passesRakudo passes2026-10-24 · 08a17d21
  1. 1

    A routine the program names after a block prefix (start, do, try, gather, quietly, once, react, supply) is called with its arguments when the name is glued to a paren, while with a space or before a block the word is still the prefix.

    sub start($x) { $x + 1 }; say start(5) says 6

  2. 2

    A routine named after a keyword (start, if, repeat) is recognized in a call even when it is declared further down the file. inferred

keyword-pair-keysRaku++ passesRakudo passes2026-07-29 · 51203006
  1. 1

    A fat arrow autoquotes any identifier on its left, declarator keywords included.

    method => 'GET' is a Pair

listop-angle-words-unicodeRaku++ passesRakudo passes2026-09-29 · ee853a03
  1. 1

    A <…> or «…» word list straight after a listop name keeps its words as written, including characters that are Unicode operator spellings.

    c <a−b> passes the word with U+2212, and c <×> passes ×

More from this test: Types & coercion (1).

listop-capture-contextualizerRaku++ passesRakudo passes2026-10-03 · 1e535cb8
  1. 1

    A list operator followed by the contextualized match capture @$<name> takes it as its argument.

    make @$<seg>.map(~*).join('|') is one call to make; say @$<x>.elems prints the count

listop-star-method-vs-multiplicationRaku++ passesRakudo passes2026-07-22 · 60a51a27
  1. 1

    After a listop name, * followed tightly by .method is a WhateverCode argument (say *.abs, map *.abs, @a), while an ordinary infix * remains multiplication.

listop-takes-a-brace-composerRaku++ passesRakudo passes2026-09-15 · 148f566b
  1. 1

    In a listop's argument position %{ … } and @{ … } are composers, since there is no left operand for an infix % and the brace is not a block.

    make %{'k' => 1} passes the hash to make

listop-terms-and-empty-container-failuresRaku++ passesRakudo passes2026-07-27 · 40bb85d6
  1. 1

    A named inline class Foo {…} is a term, so say class Foo {} passes it as one argument.

  2. 2

    [∞] is a one-element array literal, not a reduction.

More from this test: Hashes & sets (1), I/O & processes (1), Lists & laziness (4).

lizmat-containers-and-dispatchRaku++ passesRakudo passes2026-09-13 · 3a8f2148
  1. 3

    :!exists is accepted on a pseudo-package stash subscript.

More from this test: Hashes & sets (1), Classes, roles & the MOP (2), Signatures & dispatch (1), Strings & Unicode (1).

loose-prefixes-and-listop-adverbsRaku++ passesRakudo passes2026-07-27 · 40bb85d6
  1. 2

    not can begin a term, so say not 0 passes not 0 to say.

More from this test: Lists & laziness (1), Operators (1).

math-nintegrate-fixesRaku++ passesRakudo passes2026-09-29 · e7be1d17
  1. 2

    In a colonpair that starts with digits, the digits are the value and the rest is the key, even when the rest looks like a radix prefix or an exponent.

    :0dimension is dimension => 0, :0xab is xab => 0, :0e5 is e5 => 0

More from this test: Regexes & grammars (1), Signatures & dispatch (3), Types & coercion (1).

method-call-shapes-and-core-tablesRaku++ passesRakudo passes2026-10-04 · 1ae46f02
  1. 2

    [+].^name calls the meta-method on the result of the zero-operand reduction.

  2. 3

    $obj.*m; is a .* method call, not the start of an m;…; match.

More from this test: Containers & assignment (1), Numerics (1), Classes, roles & the MOP (9), Operators (1), Strings & Unicode (1).

method-name-is-not-a-listopRaku++ passesRakudo passes2026-09-14 · a81e2c44
  1. 1

    A method name is never a listop, so a < after .all or .any is the less-than operator and not the opener of a word list.

    (1, 2).all < 5 is a comparison

modinfo-ecosystem-clusterRaku++ passesRakudo passes2026-08-02 · 2d99420e
  1. 1

    # is a word inside a bare < … > word list, not the start of a comment.

    <# name version> is ("#", "name", "version")

  2. 2

    The Latin-1 letters below U+00C0 (ª, µ, º) and the Lm modifier letters (ˆ, ˇ) are identifier characters, usable as colonpair keys.

    my %h = (:µ("mu")); %h<µ> is mu

  3. 4

    A regex literal may stand on both sides of the flip-flop operator ff.

    <a START x END b>.grep({ / START / ff / END / }) is START x END

  4. 5

    A method may be declared in the dispatch:<…> category.

    method dispatch:<.?>(\name, |c) is raw { Nil } parses in a class body

  5. 10

    with/without take part in an if-chain and may be followed by elsif and else.

    do with $g { "with" } elsif $a { "elsif" } else { "else" } gives elsif for (Any, 1)

  6. 18

    sub rule(…) declares a routine named rule, not a grammar rule.

    sub rule(Int $n --> Str) { '-' x $n }; rule(3) is ---

  7. 20

    A { … } that opens with a computed key followed by => is a Hash composer, while one that opens with a listop call taking a pair is a Block.

    { $d.name => True } is a Hash; { dt month => 0 } is a Block

More from this test: Hashes & sets (1), I/O & processes (1), Lists & laziness (1), Operators (1), Regexes & grammars (3), Scoping & phasers (2), Signatures & dispatch (3), Types & coercion (1).

module-fixes-batch-1Raku++ passesRakudo passes2026-07-23 · 009d2c9d
  1. 4

    :16(...) is a radix conversion, so { :16($_) } is a code block, not a hash composer.

More from this test: Lists & laziness (1), Regexes & grammars (1), Signatures & dispatch (1).

module-quote-word-sub-scopeRaku++ passesRakudo passes2026-10-29 · 46c4ef60 · #194
  1. 1

    A routine named like a quote word makes q{…} a call wherever the routine is in scope.

More from this test: Modules (1).

module-type-before-pointy-blockRaku++ passesRakudo passes2026-10-30 · 7aa4256c
  1. 1

    A class, role or grammar that a used module declares is a type name while the importing file is parsed, so it is a term before a pointy block.

    for Cro::Uri, Cro::Iri -> $parser { … } loops over the two types

More from this test: Compile-time errors (1).

non-ascii-names-bind-and-typeRaku++ passesRakudo passes2026-10-20 · edf09560
  1. 1

    A scalar whose name starts with a non-ASCII letter is an ordinary variable, so := binds it as an alias rather than copying.

    after my $ч = 1; my $y := $ч; $ч = 2, $y is an alias of $ч, not a copy holding 1

More from this test: Types & coercion (1).

non-ascii-names-in-regex-and-twigilsRaku++ passesRakudo passes2026-10-23 · 9d48b3b5
  1. 2

    A twigil may be followed by a name starting with any Unicode letter, as in has $.ч and $^ч.

    say { $^ч + $^ш }(1, 2) and class A { has $.ч = 1 }; say A.new.ч work

More from this test: Regexes & grammars (2).

non-ascii-type-names-in-parser-guessesRaku++ passesRakudo passes2026-10-23 · 9d48b3b5
  1. 1

    A name whose first letter is non-ASCII and not lower-case is parsed as a type name for the :D smiley, a parameterization, Foo .new and the indirect new Foo:.

    class Éx {}; say Éx.new ~~ Éx:D is a type smiley, and my $o = new Еx: is accepted

  2. 2

    A CJK ideograph that carries a numeric value is a letter in an identifier, not a numeral.

    my class 万 {} declares a class

  3. 3

    ?&name in term position is the prefix ? applied to &name, for a name in any script.

    sub е { }; say ?&е, 1 parses

More from this test: Classes, roles & the MOP (1).

non-breaking-space-is-lexer-whitespaceRaku++ passesRakudo passes2026-09-17 · 9f22c875
  1. 1

    NBSP (U+00A0), FIGURE SPACE (U+2007) and NARROW NBSP (U+202F) are whitespace between tokens, and an unspace joins across them.

    my<NBSP>$x declares $x

  2. 2

    A non-breaking space does not split a < … > word quote.

    <a<NBSP>b> is the one word "a<NBSP>b"

one-arg-rule-and-qw-allomorphsRaku++ passesRakudo passes2026-09-08 · 6c9d1d52 · #69
  1. 1

    Only the angle forms <8 9>, «8 9» and <<8 9>> make allomorphs of numeric-looking words; qw, qww, qqw, qqww and the :w/:words quote adverbs give plain Str.

    qw<8 9> holds two Str; <8 9> holds two IntStr

More from this test: Lists & laziness (2).

only-ellipsis-bracketed-infixRaku++ passesRakudo passes2026-08-20 · f4d8518b
  1. 5

    A user-declared sub infix:<…> spelled with ASCII operator characters is lexed as one token wherever it is used.

    with sub infix:<%%%> declared, 5 %%% 2 calls it

More from this test: Hashes & sets (2), Operators (2), Signatures & dispatch (1).

open-modes-bind-end-shiftRaku++ passesRakudo cannot run it2026-07-30 · bbf7c862
  1. 4

    x +< n with a spaced identifier as the shift amount is a shift, while +<a b> and +< foo bar > remain prefix + on a word list.

More from this test: Containers & assignment (1), I/O & processes (1), Scoping & phasers (1).

operator-name-quoted-guillemet-wordRaku++ passesRakudo passes2026-11-13 · ce72763f · rakudo#1264
  1. 1

    A quoted word inside the « » list of an operator name is the word without its quotes.

    sub infix:«"z"» (…) declares the operator z, so 42 z 42 and "42 z 42".EVAL reach it

operator-strictnessRaku++ passesRakudo passes2026-07-28 · ccc187ec
  1. 2

    +< and ~< after a term are the infix shift operators, while after a listop name ~<2> is prefix ~ on a word list.

    1 +< "2" is a shift; is-deeply ~<2>, '2' passes prefix-~ of a word list

More from this test: Operators (1), Stringification (1).

package-declaration-is-termRaku++ passesRakudo passes2026-11-08 · 01673b79
  1. 1

    A package declaration that starts a statement is a term an infix may follow on its line.

    class A {} === A and class D {} ~~ D parse, and class {} ~ "x" is one expression

package-name-adverbsRaku++ passesRakudo passes2026-07-22 · 93e91cdb
  1. 1

    A package declaration's name may carry adverbs, as in module M:ver<0.19> { ... }, and the braces are still the package body.

paren-is-not-a-quote-delimiterRaku++ passesRakudo passes2026-08-20 · 9767f094 · #22
  1. 1

    q, qq, Q, m and rx followed immediately by a parenthesis are routine calls, not quotes.

    say q("11000") is "Undeclared routine q" unless a sub q is declared

  2. 2

    With whitespace before it, a parenthesis is a quote delimiter; every other bracket pair delimits with or without the space.

    rx (o) is a Regex; ss (foo) = 'bar' is a substitution

paren-segment-statement-modifierRaku++ passesRakudo passes2026-11-13 · f8b5555c
  1. 1

    Every ; segment of a parenthesised list takes a statement modifier, not only the first.

    ($n++; last if $n > 3) for 1..* parses

paren-signature-beside-declared-set-opRaku++ passesRakudo passes2026-10-29 · cbbeeb07 · #60
  1. 1

    A user-declared operator spelled (…), such as infix:<(|)>, yields to a signature after a routine declarator and to an argument list when glued to a name, and is the operator only when spaced between terms.

    proto sequence(|) {*} keeps its (|) signature in a file that declares sub infix:<(|)>

paren-statement-listRaku++ passesRakudo passes2026-11-26 · 43afaabe · #288
  1. 1

    The inside of ( … ), %( … ), @( … ) and $( … ) is a statement list: a } that closes a line ends a statement there, and a statement such as for or if may stand in any segment.

    (for 1 {}; 5), (1; if 1 { 2 }) and $(if 1 { 2 }) parse

    Also held by paren-statements.

parse-unicode-and-shapesRaku++ passesRakudo passes2026-09-12 · 39b5af4c
  1. 1

    Any Unicode letter, including Indic scripts, may be used in an identifier or a colonpair key.

    :ह<hi> and my $ह = 5 parse

  2. 2

    A hyphen joins an identifier to a following non-ASCII letter, in code and in string interpolation alike, while a hyphen before a digit does not join.

    "v=$markup-Δ" is v=7; with $a = 3, "$a-1" is 3-1

  3. 4

    A given or with block may be used as an expression and evaluates to its block's value.

    ( given 2 { when 2 { "two" } } ) is two; ( with 3 { $_ * 2 } ) is 6

  4. 6

    A double-angle colonpair value :key<<…>> interpolates and splits into words, where the single-angle form does not interpolate.

    :author<<Richard Hainsworth, aka finanalyst>>

More from this test: Modules (1), Signatures & dispatch (1).

pdf-family-2026-09Raku++ passesRakudo passes2026-09-14 · a3586267
  1. 1

    A declared sub prefix:</> takes the slash away from the regex literal for the rest of the file, so a leading / is that prefix operator.

    /'Outlines' applies the user's prefix:</> to the string

  2. 2

    set, bag and mix followed by <…> open a word list, so ' and " inside it are ordinary word characters.

  3. 3

    A sigilless term shadows a quote keyword: declaring \m makes m a name rather than a match opener, within the block it was declared for.

  4. 4

    A package declarator keyword can be used as a term, as in package.^add_method(…).

  5. 6

    After a statement-modifier with or without, a % opens a term, so $num += $_ with %%Roman{'I'} reads %%Roman{…} as a hash contextualizer applied to %Roman{…} rather than an infix. inferred

    $num += $_ with %%Roman{'I'} adds the element

  6. 8

    A declaration list may hold typed sigilless items, as in my (UInt \a, \b) = ….

  7. 9

    Braces holding pairs with a trailing ; are still a hash composer, while a second statement inside makes them a block.

  8. 10

    Routine declarations can be strung together with commas, sub a {…}, sub b {…}, forming a list of the routines.

  9. 12

    $.name:sym<x>(…) calls the method whose name is the proto-regex candidate name name:sym<x>.

  10. 13

    &.name(…) is self.name(…).

  11. 30

    A leading dot after a prefix operator opens the operand's term, a method call on the topic.

More from this test: Containers & assignment (8), Exceptions & control flow (1), I/O & processes (1), Lists & laziness (1), Modules (1), Numerics (1), Classes, roles & the MOP (14), Operators (1), Regexes & grammars (3), Scoping & phasers (4), Signatures & dispatch (9), Types & coercion (3).

phaser-name-called-like-routineRaku++ passesRakudo passes2026-11-14 · f1491b3e
  1. 1

    A phaser's name with a tight paren is a call of a routine of that name, which nothing declares, and does not run the phaser.

    FIRST($_ * 10) is a call to an undeclared routine FIRST

pointy-block-for-modifierRaku++ passesRakudo passes2026-10-19 · 9550aecc
  1. 1

    A pointy block in front of a for statement modifier is the loop's body and runs once per element, also under do or inside parentheses.

    do -> $x { print "ran " } for 1..2 runs the block per element instead of yielding two Blocks

More from this test: Hashes & sets (1), Signatures & dispatch (3).

private-method-named-regexRaku++ passesRakudo passes2026-10-07 · c0496b90
  1. 1

    A private method may be named regex, rule or token: method !regex() { … } declares it and self!regex calls it.

process-scope-and-sigilless-whileRaku++ passesRakudo passes2026-08-04 · e89a2d46
  1. 2

    while and until accept a sigilless loop variable after the arrow.

    while nxt() -> \r { @seen.push(r) }

More from this test: Everything else (1), Scoping & phasers (1), divergences (1).

proto-multi-as-termRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 1

    A proto sub or my multi sub declaration is a term and may be used in expression position, such as an argument.

    use CLI::Version $?DISTRIBUTION, proto sub MAIN(|) {*}, 'long'

More from this test: Signatures & dispatch (1).

q-bare-punctuation-delimitersRaku++ passesRakudo passes2026-10-30 · 594d4aac
  1. 1

    The q family of quotes takes a punctuation delimiter such as +, *, ^ or = when it sits tight against the keyword and closes on the same line, while q=>1 stays a pair.

    q+{{planet}}+, q*…*, qq^…^, Q=…= and qw+…+ are quotes

More from this test: divergences (1).

q-quote-semicolon-comma-dotRaku++ passesRakudo passes2026-11-09 · c1c8743d
  1. 1

    ;, , and . are valid delimiters for the q, qq and Q quote forms.

    q;abc;, q,abc, and q.abc. are quotes

  2. 2

    A declared sigilless term named q (my \q, a \q or |q parameter, constant q) is that term and not a quote, and a class named Q is the class.

qq-closure-holds-delimiterRaku++ passesRakudo passes2026-10-10 · f27fa12f
  1. 1

    A {…} closure inside a qq-family quote with the closure feature (qq, qqw, qqx, q:c, Q:c, qq:s) is Raku code, and a string in it may hold the quote's own closing delimiter.

    qq[a {"]"} b] is a ] b

  2. 2

    In a qq quote with a Unicode delimiter an interpolation chain is read as code, and the quote's closing delimiter ends a variable name.

    qq「@a.join("」")」 and qq「a $x」 parse

  3. 3

    A lone { quote delimiter makes every inner { a nesting step even under :c, so no closure is interpolated.

    qq:c{a {1+1} b} is a {1+1} b

  4. 4

    A doubled {{ quote delimiter frees the single { for closures, while a nested {{…}} stays text.

    qq{{a {1+1} b}} is a 2 b

qqw-interpolates-then-splitsRaku++ passesRakudo passes2026-10-10 · ed499880
  1. 1

    An interpolating word list without quote protection (qqw, qq:w, q:w:s, Qw:c) is one interpolated string that is split into words afterwards, so an interpolated value's words become separate words and a closure with blanks in it is evaluated whole.

    qqw[a $x b] with $x holding p q does not keep p q as one word; qqw[a {1 + 1} b] evaluates the closure

  2. 2

    In qqw, %h<k> and &f() interpolate, and an escaped blank such as \t splits words.

    qqw[a\tb] is two words

  3. 3

    qqww, «…» and <<…>> make one word per literal run and per interpolation: a closure, a call's arguments and $( … ) are each one unit, and a literal run splits once its escapes are applied.

    qqww[a {"x"} b] evaluates the closure whole

  4. 4

    A quote's feature adverbs reach the words of a word list.

    qqw:!s, qww:c, Qw:s and qqw:!b are honoured

  5. 5

    A word-list quote form with :to is a heredoc word list, interpolated and split.

    qqw:to/END/ gives words

qualified-constant-before-blockRaku++ passesRakudo passes2026-11-12 · d36fb3fa
  1. 1

    A package-qualified constant named before a statement's block is the constant, a term, not a call that takes the block.

    for RakuPress::Schema::WP-TABLES -> $t { … } iterates the constant

More from this test: Compile-time errors (1).

quote-names-as-type-namesRaku++ passesRakudo passes2026-09-10 · 36d3aa84
  1. 1

    An identifier that spells a quoting construct (Q, q, qq, qw, qx, m, rx, tr) is a name wherever the syntax calls for a name: after is, does or returns in a declaration header and after class, module, package or enum.

    class R is Q { … } inherits from a class named Q

  2. 2

    Outside a declaration header, a routine named is followed by q{…} still takes a quote as its argument.

    is q{abc}, 'abc' compares the string abc

quote-word-sub-scopeRaku++ passesRakudo passes2026-09-13 · 2a981706
  1. 1

    A sub named after a quote form (sub s, sub q, sub tr) beats the quote construct only from its declaration onward and only inside the block that declares it.

    a sub s declared in a block near the bottom of a file leaves s/// above it a substitution

quote-word-vs-non-ascii-nameRaku++ passesRakudo passes2026-10-23 · 9d48b3b5
  1. 1

    A quote word (Q, q, …) directly followed by a non-ASCII identifier character, a combining mark included, is the start of an identifier, not a quote form with that character as delimiter.

    class Q̲x { }; say Q̲x.^name names the class

  2. 2

    Declaring a type whose name merely begins with a quote word leaves the quote word a quote form.

    class Q̲x { }; my $t = Q { a: b } is still a Q quote

qw-backslashed-delimiterRaku++ passesRakudo passes2026-10-10 · d1d6c4fa
  1. 1

    A q word list — qw, q:w, qww, q:ww and the :v forms, over ASCII and Unicode delimiters — has q's escapes: a backslashed delimiter is the delimiter and \\ is one backslash.

    qw[a \] b] is ("a", "]", "b")

  2. 2

    With a repeated quote delimiter, a backslash escapes the closer only as a whole run.

    q[[a \]] b]] is a ]] b; in q{{a \} b}} the \} stays

  3. 3

    A "…" (or “…”) span in qww, Qww or q:ww is a qq string, as in qqww: it interpolates and takes escapes.

    qww[a "$x\t" b] interpolates $x and reads \t as a tab

qw-val-adverbRaku++ passesRakudo passes2026-09-08 · 9f566ca5 · #69
  1. 1

    qw:v[…] (the :v/:val adverb) makes allomorphs of its words; the q-family without it gives plain Str.

rakudo-t-language-gaps-1Raku++ passesRakudo passes2026-10-05 · 892e6c61
  1. 2

    Q«…» nests its delimiters.

    Q«a«b»c» is one string

More from this test: Compile-time errors (1), Containers & assignment (1), Lists & laziness (1), Classes, roles & the MOP (2), Operators (1), Everything else (1), Regexes & grammars (2), Scoping & phasers (2), Signatures & dispatch (1), Stringification (2), Strings & Unicode (1).

rakudo-t-language-gaps-2Raku++ passesRakudo passes2026-10-05 · e209ae16
  1. 15

    The empty contextualizers $(), @() and %() keep their 6.c meaning under 6.c. inferred

More from this test: Compile-time errors (1), Exceptions & control flow (2), Hashes & sets (1), Lists & laziness (2), Operators (2), Regexes & grammars (4), Scoping & phasers (1), Signatures & dispatch (1).

rakudo-t-language-gaps-3Raku++ passesRakudo passes2026-10-05 · be813251
  1. 11

    qqw{…} nests inner braces.

More from this test: Compile-time errors (2), Containers & assignment (1), Lists & laziness (2), Modules (1), Classes, roles & the MOP (1), Operators (2), Regexes & grammars (1), Scoping & phasers (1), Signatures & dispatch (1), Stringification (1).

rakudo-t-language-gaps-6Raku++ passesRakudo passes2026-10-05 · 93d444fb
  1. 5

    A tight adverb on a declared term is that term's named argument, so adverbed terms nest.

    FOO:to(FOO:of(5))

More from this test: Lists & laziness (1), Operators (2), Regexes & grammars (1).

rakuglaze-round-6Raku++ passesRakudo passes2026-10-09 · 8902cac9
  1. 1

    After the name of a declared routine, a spaced + or - is a prefix on the routine's argument, not an infix.

  2. 6

    A type named Req is read as the type, not as the reversed operator R applied to eq.

More from this test: Concurrency (1), Exceptions & control flow (1), Hashes & sets (2), I/O & processes (1), Lists & laziness (2), Classes, roles & the MOP (1), Regexes & grammars (1), Scoping & phasers (1).

rakupp-upgradeRaku++ passesRakudo cannot run it2026-09-11 · 65aaaa20
  1. 3

    try is a statement prefix that takes a trailing statement modifier inside itself, so $j = try EXPR unless $j still assigns when the condition skips the statement, storing an empty Slip.

    $j = try EXPR unless $j overwrites a true $j with the skipped statement's empty Slip

regex-after-listop-nameRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 1

    A / after a bare routine name and whitespace opens a regex, while a tight w/2, or a / after a term-word or a declared constant, is division.

    test-hi / << b.r >> /, … passes a regex as the first argument

regex-capture-marker-and-mirrored-quotesRaku++ passesRakudo passes2026-08-03 · 34cda960
  1. 2

    A Unicode opening-punctuation quote delimiter closes with its Bidi-mirrored character, not with the next codepoint.

    ⦍ U+298D closes with ⦐ U+2990, ⦏ U+298F with ⦎ U+298E, [ U+FF3B with ] U+FF3D

More from this test: Regexes & grammars (1).

regex-unicode-bracket-delimitersRaku++ passesRakudo passes2026-10-10 · 3fe584d3
  1. 3

    Unicode quotes — ‘…’, “…”, 「…」 and the low-9 forms ‚…’ and „…” — nest on their own opener wherever they appear, inside a regex too.

    / 「a 「b」 c」 / matches the whole text a 「b」 c, not only a 「b

More from this test: Regexes & grammars (2).

return-call-to-keyword-named-subRaku++ passesRakudo passes2026-10-04 · fb6b80d4
  1. 1

    Once a unit declares a routine named after a keyword, a call written tight against its paren is that call, after return too.

    with sub has declared, return has("a") returns the call's value

return-in-comma-listRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 1

    return is a term and may appear as an element of a comma list or argument list.

    nqp::if(cond, (return 'early'), return '') parses

return-is-a-list-operatorRaku++ passesRakudo passes2026-11-13 · f9028851 · rakudo#2129
  1. 1

    return takes its value as a list operator, binding tighter than the loose and/or.

    return 0 or 5 is (return 0) or 5 and returns 0

  2. 2

    A routine declaration called at once takes a postfix chain that applies to the call's result.

    sub foo { … }().say calls .say on what the sub returns, not on the topic

return-listop-in-parensRaku++ passesRakudo passes2026-08-18 · dcf52d5e
  1. 1

    return is a listop: inside parentheses too its operand is the whole comma list.

    (return (1,2), 9) returns both (1, 2) and 9

return-operand-keyword-textRaku++ passesRakudo passes2026-10-27 · a348489b · #195
  1. 1

    A return written as an operand keeps its argument when the argument is a string whose text is a keyword, or starts with a prefix like not.

    f($i) or return "no" returns "no"

roast-3log-batch2Raku++ passesRakudo passes2026-09-28 · bda6f720
  1. 1

    use v6c (no dot) selects 6.c, as use v6.c does.

More from this test: Exceptions & control flow (1), Modules (1), Numerics (1), Classes, roles & the MOP (6), Everything else (1), Regexes & grammars (5), Scoping & phasers (1).

roast-sweep-parseRaku++ passesRakudo does not pass2026-09-28 · 2cc896bd
  1. 5

    A placeholder variable in the body of a while or repeat loop takes the condition's value. inferred

    repeat while $b < 10 { $tracker = $^a; $b++ } leaves $tracker True

More from this test: Compile-time errors (5), Classes, roles & the MOP (2), Operators (1).

scalars-nil-junction-complex-dateRaku++ passesRakudo passes2026-07-27 · ebbe10f3
  1. 4

    ∞ is a term, so a / after it is division: ∞/∞ is an arithmetic expression, not the start of a regex.

More from this test: Concurrency (1), Containers & assignment (1), Dates & times (1), Numerics (3), Classes, roles & the MOP (1), Operators (1), Everything else (1), Stringification (1), Types & coercion (1).

self-as-pair-keyRaku++ passesRakudo passes2026-07-22 · 60a51a27
  1. 1

    self directly before => is an autoquoted pair key, so (self => 1) is legal outside a method and raises no X::Syntax::Self::WithoutObject.

semicolon-arglist-segmentsRaku++ passesRakudo does not pass2026-09-03 · 54147cab
  1. 1

    A ; inside an argument list makes it multi-dimensional: each segment is one positional argument and is always a List.

  2. 2

    A trailing ; in an argument list adds a final empty segment.

  3. 3

    A named argument written inside a ; segment of an argument list is absorbed by that segment's list and is not passed to the call as a named argument.

sigilless-names-token-and-destructureRaku++ passesRakudo passes2026-11-13 · d77e1185 · rakudo#5027
  1. 1

    A name that merely starts with token, rule or regex, or that follows a \, is not a regex declarator.

    -> Map \labels_, Int \token_ { … } parses

More from this test: Containers & assignment (1).

sigilless-traits-and-container-assignRaku++ passesRakudo passes2026-08-15 · d51bd661
  1. 1

    A sigilless declarator, typed or not, may carry traits before its initializer.

    my constant \COLORS is export(:colors) = %( … )

More from this test: Operators (2).

slang-seamsRaku++ passesRakudo cannot run it2026-09-13 · f8d2092c
  1. 1

    A slang registered through $*LANG.define_slang that adds a number:sym<X> or value:sym<X> token makes matching source parse as the literal its action produces.

  2. 2

    A <( / )> in a slang's entry token trims what is captured without changing what is matched.

  3. 3

    A slang overriding identifier can let a name such as pass? name a routine.

  4. 4

    A slang overriding sigilless-variable can make my 👍 = 42 declare a sigilless variable, and 👍 => v then keys the pair on the variable's value.

  5. 5

    A slang overriding pointy-block-starter can make λ open a pointy block, and one overriding routine-declarator:sym<sub> can make lambda declare a sub.

  6. 6

    A slang overriding term:sym<identifier> and methodop can make foo (1, 2) a two-argument call.

  7. 7

    A slang's tokens apply to the source below its use statement, so text only the slang can lex, such as ₅₅, is read after the pragma has taken effect.

slices-trans-and-exact-sequencesRaku++ passesRakudo passes2026-07-27 · 40bb85d6
  1. 2

    A bare % in term position is an anonymous empty Hash, while as an infix it is modulo.

    % .classify-list: … builds its result in a fresh hash

More from this test: Hashes & sets (3), Lists & laziness (1), Regexes & grammars (1), Strings & Unicode (2).

socket-read-and-stringyRaku++ passesRakudo passes2026-08-04 · 8032326a
  1. 5

    A statement prefix such as try or do takes the whole remaining expression, through the comma list and the loose and/or.

    try bad() or $reached = True leaves $reached False; (do 0 or 5) is 5; [try bad(), 2].elems is 1

More from this test: I/O & processes (3), Stringification (1).

sparrow6-blockersRaku++ passesRakudo passes2026-08-23 · e0c46be1
  1. 4

    A word list written tight after a routine name subscripts the call's result, while a spaced one is an argument list.

    cfg<name> is cfg()<name>

More from this test: Concurrency (2), I/O & processes (1).

stacked-user-postfixesRaku++ passesRakudo passes2026-10-09 · 709e6627
  1. 1

    User-declared postfixes stack: with only postfix:<!> declared, 3!! applies it twice rather than reading !! as one operator.

    3!! parses

  2. 2

    A superscript power after a user-declared postfix applies to the postfix's result.

    3!² keeps its power

stash-exists-answersRaku++ passesRakudo passes2026-10-21 · 77741ce6
  1. 2

    The :exists adverb applies to OUR::<$x> and Foo::<$x> themselves, not to an enclosing call.

    say OUR::<$z>:exists prints a Bool, not (Any)exists => True

More from this test: Scoping & phasers (1).

stash-term-before-pointy-blockRaku++ passesRakudo passes2026-11-11 · 19078698 · #238
  1. 1

    A stash term — a package name with a trailing :: — before a block or a pointy block is a term, not a routine that takes the block as its argument.

    for A::, B:: -> $pkg { … } compiles and iterates

  2. 2

    A lone stash term given to for is iterated entry by entry, as a hash is.

More from this test: Compile-time errors (1).

statistics-distributions-clusterRaku++ passesRakudo passes2026-08-21 · 41c4e624
  1. 3

    A Unicode identifier before => in an argument list is a named argument, not a positional Pair.

More from this test: Lists & laziness (1), Classes, roles & the MOP (1), Signatures & dispatch (2).

strict-separation-false-positivesRaku++ passesRakudo passes2026-11-14 · e89cc6a7
  1. 1

    return not EXPR is one statement that returns the negation.

  2. 2

    In GLOBAL::<x>:delete the :delete is an adverb on the subscript, not a Pair of its own.

  3. 3

    !!! takes an expression such as ::?CLASS.^name ~ '…' as its argument.

  4. 4

    … or last LABEL is valid and the last keeps its label.

superscript-call-but-bool-redo-copy-and-friendsRaku++ passesRakudo passes2026-09-17 · 2e994990
  1. 1

    A superscript power on * followed by a call, *²(4), is a call of the curried power, not * ** 2(4).

    *²(4) calls the WhateverCode with 4

More from this test: Exceptions & control flow (1), I/O & processes (1), Lists & laziness (1), Signatures & dispatch (2), Stringification (1), Types & coercion (1).

term-or-operatorRaku++ passesRakudo passes2026-11-29 · 38c09ed9
  1. 2

    A type's name is a term, not a list operator: Int 5 is two terms in a row rather than the coercion Int(5).

    Int 5, Int $x and Int :foo are refused

    Also held by type-name-is-a-term.

tilde-is-a-quote-delimiterRaku++ passesRakudo passes2026-09-15 · e1b41314
  1. 1

    ~ is a legal delimiter for every quote form, including substitutions.

    q~…~ and s~^(.).~$0.~ parse

tls-handshake-chain-and-identityRaku++ passesRakudo passes2026-08-03 · f204a165
  1. 2

    orwith after if/elsif is part of the same chain and runs only when no earlier branch was taken.

    if !$!ssl {} elsif … {} orwith $!connected-promise {} is one chain

More from this test: Operators (3), Signatures & dispatch (1).

todo-small-divergences-2026-10-11Raku++ passesRakudo does not pass2026-10-11 · fc6abf32
  1. 1

    A one-word q-family word list (qw[a], qqw[a], qqww[a], q:w[a]) is a one-element List, while <a>, «a» and the :v forms give the word itself.

  2. 2

    A quote form takes a quote or Unicode delimiter after a blank without an adverb.

    qq 「…」, q "…", qw «…»

  3. 14

    f - 5 is f(-5) when sub f is declared later in the file.

    f - 5 is f(-5)

More from this test: Containers & assignment (1), Classes, roles & the MOP (2), Operators (2), Scoping & phasers (1), Signatures & dispatch (2), Strings & Unicode (1), Types & coercion (4), divergences (1).

top100-chunk-b2b3-2026-09-03Raku++ passesRakudo passes2026-09-03 · dac523c9
  1. 1

    &&(EXPR) or ||(EXPR) at the start of a statement, with no space before the parenthesis, evaluates to the parenthesised expression.

  2. 2

    A heredoc terminator on a line ending in CRLF still ends the heredoc.

top100-refresh-2026-09-03Raku++ passesRakudo passes2026-09-03 · 3d4ec585
  1. 4

    Only a block's closing } at the end of a line ends the statement; after a subscript's } a statement modifier on the next line still attaches.

    return %h{$k} followed on the next line by if %h{$k}:exists; is one statement

More from this test: Containers & assignment (1), Signatures & dispatch (1), Stringification (1), Types & coercion (1).

top100-roots-2026-09-02Raku++ passesRakudo does not pass2026-09-02 · 7af75847
  1. 19

    The angle-bracket value of a colonpair may contain #, which is a literal character there.

    :name<#>

  2. 20

    self<ms> is a subscript on self, not the start of an m:s regex.

  3. 24

    with(EXPR) written tight against its parenthesis is a call to a routine named with.

More from this test: Containers & assignment (1), Exceptions & control flow (2), Lists & laziness (1), Modules (1), Native types & NativeCall (3), Numerics (1), Classes, roles & the MOP (4), Regexes & grammars (3), Scoping & phasers (1), Stringification (1), Strings & Unicode (2), Types & coercion (6).

trait-after-initializer-refusedRaku++ passesRakudo passes2026-10-05 · a3b7644c · #127
  1. 2

    does and but after a declaration's initializer compile, being infixes on the initial value.

More from this test: Compile-time errors (1).

undeclared-operator-nameRaku++ passesRakudo cannot run it2026-10-20 · 145cddbf
  1. 3

    A backslash inside the «…» of an operator's name escapes the character after it. inferred

More from this test: Compile-time errors (1), Operators (1).

unicode-bracket-quote-nestsRaku++ passesRakudo passes2026-10-10 · 130d8a4b
  1. 1

    A quote word with a Unicode bracket for its delimiter nests the pair, for every pair it accepts — 「」 ⟨⟩ 【】 () ‘’ “” «» and the rest.

    Q「outer 「x」 y」 is one string

  2. 2

    A repeated Unicode bracket opener is one delimiter of a quote word.

    Q「「a」b」」 is one string

  3. 3

    With a Unicode bracket delimiter q has its escapes — \\ and a backslashed delimiter — while a bare Q stays escape-free.

unicode-ops-quadraticRaku++ passesRakudo passes2026-07-29 · 42d70993
  1. 2

    × (U+00D7) and ÷ (U+00F7) are operator symbols, not identifier letters.

More from this test: Operators (2).

uninit-warning-names-and-placeRaku++ passesRakudo cannot run it2026-10-02 · 925260b1
  1. 3

    Int ~ "x" is the infix ~ with the type object on its left, not the coercion Int(~"x").

More from this test: Exceptions & control flow (1), Numerics (2).

unspace-after-block-closeRaku++ passesRakudo passes2026-09-16 · b22d82fc
  1. 1

    An unspace (a backslash before the line break) after a block's closing } joins the next line to the statement, for infix operators, method calls and statement modifiers.

    do {1} \ followed on the next line by + 2 includes the addition

user-terms-across-unitsRaku++ passesRakudo passes2026-09-16 · fb4a6d59
  1. 2

    A user-declared term's name may end in ? or !.

    sub term:<no-commas?> beside sub no-commas, used as no-commas?

More from this test: Modules (1).

whatever-hyper-method-after-listopRaku++ passesRakudo passes2026-11-13 · fdaa60ec · rakudo#5901
  1. 1

    A * that opens a list operator's arguments and is followed by a tight hyper method call is a WhateverCode, not multiplication.

    say *>>.fmt("%02x")(42) parses

while-destructure-and-candoRaku++ passesRakudo passes2026-08-04 · 28184bc3
  1. 1

    while EXPR -> SIGNATURE accepts a destructuring sub-signature, named or positional.

    while @q.shift -> (:key($k), :value($v)) { … } unpacks each Pair

More from this test: Signatures & dispatch (1).

word-list-escapes-comma-op-forward-typeRaku++ passesRakudo passes2026-08-20 · 09e5fe68
  1. 1

    Inside a bare < … > word list a backslash escapes <, > and \, any other backslash sequence keeps both characters, and {/} are ordinary word characters.

    \< and \> are the literal angles, \\ is one backslash

More from this test: Operators (1), Scoping & phasers (1).

wordop-name-called-as-listopRaku++ passesRakudo passes2026-08-30 · 1e410d63
  1. 1

    An identifier written tight against ( is a call, never an infix, even when it names a word operator such as min.

    say min(3, 9) prints the result of min(3, 9), not a blank line

wordquote-colonpair-bracketRaku++ passesRakudo passes2026-11-08 · 5f6d78e4 · #231
  1. 1

    In a word list with quote protection (« », << >>, qww, qqww, Qww, q:ww, Q:ww) a colonpair is code and its value group belongs to it.

    « :x[1, 2] » is :x([1, 2])

  2. 2

    In a quote-protected word list a colonpair may start mid-word, and the character after its value starts a new word.

    a:b is ("a", :b) and :x[1,2]y is (:x([1, 2]), "y")

  3. 3

    Without quote protection (qw, q:w, qq:w, <…>) the words of a word list split at blanks and no colonpair forms.

  4. 4

    A colonpair's angle value is read as the quote it is: :x<1/2> holds a RatStr, :x<<a>> the word "a", and :x«a :b» holds a pair and splits what it interpolates.

More from this test: Compile-time errors (1).

xblock-listop-in-conditionRaku++ passesRakudo passes2026-10-27 · 4af53b07
  1. 1

    A listop before a block in a statement condition (if, unless, elsif, with, without, while, until, repeat while, for, given, when, whenever) takes the block as its argument, so the statement's own block has to come after it.

    if foo { 1 } { say "yes" } calls foo with the first block

  2. 3

    A term, a type or a statement prefix before a block in a statement condition is no listop and leaves the block to the statement.

    if now { }, if rand { }, for buf8 -> \bt { } and for gather { … } { } keep the block for the statement

More from this test: Compile-time errors (1).

zef-load-fixesRaku++ passesRakudo passes2026-07-24 · 75f92c65
  1. 3

    A postfix on a class declaration applies to the class, so class Foo {…}.new(…) as a statement constructs an instance.

More from this test: Hashes & sets (1), Classes, roles & the MOP (1).

zero-dep-module-sweepRaku++ passesRakudo passes2026-07-30 · 75f59c3e
  1. 2

    @$<seg> contextualizes the named capture $<seg> as a list; the capture subscript belongs to the variable, unlike the subscript in @$p[0].

  2. 3

    &%dispatch{$key} — the code sigil on a hash or array element — is the callable stored in that element.

  3. 4

    =begin comment blocks of the same name nest: the outer block ends at its own =end comment, not at the inner one.

More from this test: Native types & NativeCall (1), Regexes & grammars (1).