Raku Cases › Stringification

Stringification

What .gist, .raku, .Str and say print for each kind of value.

104 rules from 76 tests. 69 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.

anon-rule-interpolated-keeps-kindRaku++ passesRakudo passes2026-11-08 · 853b606b
  1. 2

    The .raku of an anonymous rule or token names its declarator.

    rule { a b }.raku is rule { a b }, not rx/ a b /

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

attr-layout-store-orderRaku++ passesRakudo cannot run it2026-11-06 · 53943b71
  1. 2

    .raku lists an object's attributes in declaration order, whatever order they were stored in.

bson-simple-and-hash-agnosticRaku++ passesRakudo passes2026-08-31 · 2d04edb3
  1. 9

    A type object gists by its short name, while .raku keeps the full name.

    Deep::Down.gist is (Down); Deep::Down.raku is Deep::Down

More from this test: Containers & assignment (4), Dates & times (1), Hashes & sets (1), Modules (1), Classes, roles & the MOP (2), Operators (1), Signatures & dispatch (2), Strings & Unicode (1), Types & coercion (1).

builtin-exception-stringifiesRaku++ passesRakudo passes2026-11-08 · 46c4e957
  1. 1

    ~ and sprintf('%s') of a built-in exception made with .new give its message, as .Str does.

    ~X::AdHoc.new(:payload<boom>) is its message, with no "Use of uninitialized value" warning

  2. 2

    An exception with no message stringifies as "Something went wrong in (E)".

builtin-takes-junction-wholeRaku++ passesRakudo passes2026-11-08 · 3f7f2856
  1. 2

    An Array holding a single Junction renders with no trailing comma.

    [any(1, 2)]

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

conformance-io-pathRaku++ passesRakudo passes2026-07-26 · a5a99678
  1. 1

    An IO::Path's .gist is the expression that makes it ("foo/bar".IO), its .raku the full constructor with SPEC and CWD, and its .Str the bare path.

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

conformance-missing-routinesRaku++ passesRakudo passes2026-07-26 · 38c08132
  1. 2

    Format.new("%s|%s") is a reusable sprintf: calling the object formats its arguments.

More from this test: I/O & processes (1), Types & coercion (1), divergences (1).

conformance-phase1-reprRaku++ passesRakudo passes2026-07-25 · 970de58d
  1. 1

    A Seq's .raku is the list form followed by the coercion that rebuilds it, while its .gist and .Str stay the plain list form.

    .raku is (1, 2).Seq where .gist is (1 2)

  2. 5

    An itemized container shows its $ marker at the top level of .raku.

More from this test: Hashes & sets (1), Lists & laziness (2), Signatures & dispatch (1), Types & coercion (1).

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

    A QuantHash's .raku is the expression that rebuilds it — a pair list coerced to the kind for Bag/Mix kinds, a constructor call for the Set family — and a Map's is Map.new((…)), never a Hash literal.

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

container-raku-of-tagged-valuesRaku++ passesRakudo passes2026-11-27 · d6b52331
  1. 1

    A List, Array, Hash or Pair's .raku renders a Version, Date, DateTime, Systemic object or Uni inside it through that value's own .raku, nested as at the top.

    (v1.2,).raku is (v1.2,) and a Date in a Hash is {:d(Date.new(2026,2,3))}

  2. 3

    A one-element Array's .raku has a trailing comma only when the element is a lone Hash or Map.

    [Set.new(1),].raku and [Date.new(…),].raku have no trailing comma

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

control-handled-leaves-block-lax-package-var-str-warnsRaku++ passesRakudo passes2026-09-17 · 2e994990
  1. 2

    A type object in string context warns "Use of uninitialized value of type Any in string context." and yields the empty string, unless the type declares its own method Str, which is then used.

    ~Any warns and is ""

More from this test: Exceptions & control flow (1), Scoping & phasers (1).

currying-and-signature-renderRaku++ passesRakudo does not pass2026-07-25 · 87bdca82
  1. 1

    Signature.raku is :(…), while .gist and .Str are the bare parenthesised form.

  2. 2

    A rendered signature shows named parameters with their : (:$a, :key($var), nested :b(:c($a))), ! on required nameds, */**/+ on slurpies, |c for captures, and default values.

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

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

    An Attribute object stringifies to text that names the attribute.

    ~$attr contains $!private

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

dd-failure-not-sunk-and-exception-rakuRaku++ passesRakudo passes2026-11-13 · eb482a9f · rakudo#2434
  1. 2

    A built-in exception's .raku shows its attributes in declaration order and without a message, which is a method.

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

declarator-doc-after-bodyRaku++ passesRakudo passes2026-11-09 · 983b9524
  1. 3

    .raku of a declarator block (.WHY) is a constructor call naming its declarand and its leading and trailing parts.

More from this test: Everything else (4).

default-object-rendererRaku++ passesRakudo passes2026-07-28 · c035f27d
  1. 1

    .gist and .raku of an object whose class defines neither are the same string.

  2. 2

    The default .raku of an object lists inherited attributes too, the derived class's own first and then its parents'.

    Q.new(q => 2, p => 1) for class Q is P

  3. 3

    The default object rendering shows a Str attribute as an escaped string literal and container attributes in .raku form ([1, 2], {:a(1)}).

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

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

    The default .Str of an object carries its identity, so an object and its clone stringify differently.

    isnt $a, $a.clone passes

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), Syntax & parsing (3), Types & coercion (2).

doc-missing-methodsRaku++ passesRakudo cannot run it2026-07-28 · ccc187ec
  1. 3

    Format.directives names each conversion of the format, and a literal %% is not a directive. inferred

    Format.new("%05d%3x:%s").directives gists (d x s)

  2. 5

    An IO::Handle stringifies as its path and gists as IO::Handle<"PATH".IO>(opened). inferred

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

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

    $fh.say($obj) renders the object with its own method gist.

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

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

    An exception's .Str and .gist are its message, for CX:: control exceptions too.

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

endless-range-reduceRaku++ passesRakudo passes2026-08-14 · b4b8702e · #19
  1. 4

    An endless Range renders its endpoint as Inf.

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

enum-raku-and-divzeroRaku++ passesRakudo passes2026-08-15 · 09b409c9
  1. 1

    .raku on an enum value is qualified with the enum's name.

    (3 cmp 5).raku is Order::Less

More from this test: Numerics (2).

enum-type-object-gist-short-nameRaku++ passesRakudo passes2026-11-08 · ced6a8ef
  1. 1

    A qualified enum's type object gists by its short name, while its .^name and .raku keep the whole name and .^shortname is the short one.

    enum B::Idx <X Y>; say B::Idx prints (Idx)

exe-nested-class-nativeRaku++ passesRakudo passes2026-11-19 · edc7c865
  1. 3

    A list's .gist (and say @objects) uses each element's own class's gist method. inferred

    Also held by exe-nested.

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

fatrat-str-and-new-argumentsRaku++ passesRakudo passes2026-10-17 · 38e236da · #173
  1. 1

    A FatRat stringifies with more fractional digits than a Rat: once the denominator reaches 100000, a Rat gets #digits(denominator) + 1 places and a FatRat #digits(denominator) + #digits(whole part) + 5.

    FatRat.new(113704391677318964121600, 18890217959702350060800) prints 6.019220737414433984

More from this test: Numerics (1).

fractional-rangeRaku++ passesRakudo passes2026-08-21 · 874a2002
  1. 2

    .raku of a Range with fractional endpoints shows the real endpoints.

    (1.5..2.5).raku is 1.5..2.5

More from this test: Numerics (1).

from-iterator-keeps-its-typeRaku++ passesRakudo passes2026-09-15 · e1b41314
  1. 2

    A Slip's .raku uses the slip(…) form.

    (1,2,3).Slip.raku is slip(1, 2, 3)

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

getopt-long-parameter-traitsRaku++ passesRakudo passes2026-08-30 · 5e23726e
  1. 8

    A Pair whose value is a container gists as the value the container currently holds.

    k => (Any) before assignment, k => 7 after assigning 7

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

grand-review-c1-interpRaku++ passesRakudo passes2026-09-06 · fa74f74f
  1. 21

    The Num 1e15 stringifies in integer form, not in exponent notation.

    1e15.Str is 1000000000000000

More from this test: Containers & assignment (1), Exceptions & control flow (3), I/O & processes (1), Numerics (7), Operators (4), Scoping & phasers (4), Signatures & dispatch (3), Strings & Unicode (1).

grapheme-units-split-rules-sprintfRaku++ passesRakudo passes2026-10-21 · 1918e400
  1. 4

    Match.raku prints :from and :pos as character positions, the same numbers .from and .to give.

    ("éab" ~~ /ab/).raku does not say :from(2), :pos(4)

More from this test: Regexes & grammars (1), Strings & Unicode (3).

hash-map-pair-semantics-sheetRaku++ passesRakudo passes2026-09-20 · ed688ad6
  1. 8

    A typed hash's .raku prints its declaration, and is default alone does not change how a hash prints. inferred

    (my Int %t = a => 1).raku is (my Int % = :a(1))

  2. 11

    A Hash's .gist stops at 100 pairs and ends , ...}, while .Str and .raku stay complete. inferred

  3. 13

    The empty Map's .raku is Map.new, its .gist is Map.new(()), and an itemized Map's .raku carries its $( ). inferred

    $(Map.new((a => 1))).raku is $(Map.new((:a(1))))

  4. 19

    Hash.fmt defaults to key, tab, value with one pair per line, takes a format and a separator, and with a single directive formats the key alone. inferred

    %(a => 1, b => 2).fmt has the lines a\t1 and b\t2; .fmt("%s") has the lines a and b

  5. 20

    A Pair's .raku uses the colonpair form when the key is an identifier (hyphen or apostrophe between words and Unicode letters included), :a and :!a for True and False values, and the arrow form otherwise. inferred

    (a => 1).raku is :a(1); ("a-1" => 1).raku is "a-1" => 1; (a => False).raku is :!a

More from this test: Containers & assignment (3), Hashes & sets (13), Operators (4), Types & coercion (1).

hash-push-append-and-itemised-valuesRaku++ passesRakudo passes2026-07-27 · 4c35f546
  1. 4

    Every hash value sits in a Scalar container, so an Array, Hash or List stored there renders with the $ itemization marker however it was stored.

    %h<k> = [1,2] and my %h = k => [1,2] render the same

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

itemization-and-list-foldsRaku++ passesRakudo passes2026-07-26 · 0ccec43d
  1. 2

    An itemized list renders with a $ marker in .raku, except as an Array element, whose slot itemizes anyway.

    [[1, 2],] but ($(1, 2),)

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

js-nul-before-digit-and-num-boundaryRaku++ passesRakudo passes2026-11-10 · 44502bd4
  1. 2

    A Num with an integral value below 1e16 prints as an integer, without an exponent.

    say 1e15 prints an integer, not 1e+15

keyof-capture-and-cool-subsRaku++ passesRakudo passes2026-07-27 · 4c35f546
  1. 5

    printf($fmt, $junction) prints once per eigenstate, in order, while sprintf does not autothread and keeps the junction as one value.

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

list-array-semantics-sheetRaku++ passesRakudo passes2026-09-19 · 1e36359f
  1. 4

    A typed array's .raku and .^name name its element type, its .default is the type object, and a native array rakus through array[int].new. inferred

    (my Int @t).raku is Array[Int].new(); (my int @t = 1, 2).raku is array[int].new(1, 2)

  2. 12

    join and .Str on a lazy list render the elements already reified followed by ..., and a lazy Array's .gist and .raku are [...]. inferred

    my @a = 1..*; @a[2]; @a.join(",") is 1,2,3,...

  3. 22

    .fmt on a list formats one element at a time and recurses into a nested list. inferred

    (1, (2, 3)).fmt("<%s>", ",") is "<1>,<2>,<3>"

More from this test: Containers & assignment (7), Exceptions & control flow (1), Lists & laziness (11), Types & coercion (2).

missing-routines-batchRaku++ passesRakudo passes2026-07-26 · 8782278a
  1. 5

    A named routine gists as its &-reference, not as a generic sub {…}.

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

module-page-sextetRaku++ passesRakudo passes2026-07-30 · 8de6c3a0
  1. 8

    $s ~= $obj uses the object's user-defined Str method, as binary ~ does.

  2. 10

    A sprintf integer precision zero-pads big integers too.

    %32.32x of a 128-bit value gives 32 hex digits

More from this test: Numerics (1), Classes, roles & the MOP (3), Regexes & grammars (7), Strings & Unicode (1).

mu-roles-and-itemizationRaku++ passesRakudo passes2026-07-26 · fa75abec
  1. 5

    IterationEnd is a sentinel, not a type object, and gists as its bare name.

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

needle-compile-clusterRaku++ passesRakudo passes2026-09-12 · cb851ea9
  1. 1

    A Str value carrying a mixed-in or subclass method Str contributes its underlying string value to ~, eq, join and interpolation, while an explicit .Str call still dispatches to the override. inferred

    ("cc-p3" but role { method Str { "OVERRIDDEN" } }) ~ "!" is "cc-p3!"

  2. 7

    Num.Str is the shortest decimal that round-trips to the same Num. inferred

    (2 ** -24).Num.Str is "5.960464477539063e-08"

More from this test: Exceptions & control flow (1), Classes, roles & the MOP (1), Everything else (1), Signatures & dispatch (2).

nested-list-container-stringifiesRaku++ passesRakudo passes2026-10-08 · 5ccae330
  1. 1

    A list holding a variable's container stringifies the variable's value when it is nested in an array, through ~@d, @d.Str, "@d[]", put @d and Test's is.

    my $x = 'a'; @d.push: ($x, 6); ~@d is a 6

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

num-str-subnormal-shortestRaku++ passesRakudo passes2026-10-03 · fb7a9b13
  1. 1

    Num.Str is the shortest decimal that reads back to the same double, for subnormal Nums too.

    3e-320 * 3 is 9e-320

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

    0..^N with an Int zero renders as ^N in both .gist and .raku, while 0.0..^5, 0..^5e0 and 0..^0.5 keep the long form.

More from this test: Operators (1), Syntax & parsing (1).

pair-as-key-value-and-patternRaku++ passesRakudo passes2026-07-26 · 34ff4d2a
  1. 4

    .fmt on a Pair formats its key and value as the two arguments.

  2. 5

    A pair produced by .invert or .antipairs with a Str key renders in colon-pair form.

    :bar("foo"), not "bar" => "foo"

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

perl-is-raku-aliasRaku++ passesRakudo does not pass2026-07-28 · 72af0ee7
  1. 1

    .perl is the old name of .raku and gives the same result, including for a user class that defines method raku.

pod-block-gist-is-rakudosRaku++ passesRakudo passes2026-10-31 · 5d4de331
  1. 1

    A Pod block's .gist is a tree of the block classes with their name/level/type/caption/term/config, each content two spaces deeper, nested in a list too.

    @pod.gist contains Pod::FormattingCode{:type("K")}

  2. 3

    A declarator block's .gist is its text.

More from this test: Everything else (1).

pod-block-str-and-rakuRaku++ passesRakudo passes2026-11-08 · 7279b2ad
  1. 1

    A Pod block's .Str is Mu's, Pod::Block::Named<…>, while a declarator block's .Str is its text.

    ~&f.WHY is the declarator's text

  2. 2

    A Pod block's .raku is the constructor call that builds it, each block inside it written the same way.

    Pod::Block::Named.new(name => "para", config => {}, contents => […])

More from this test: Everything else (1).

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

    The %.0a format rounds half to even.

  2. 16

    A format with indexed directives still checks the number of its arguments.

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), Strings & Unicode (1), Syntax & parsing (1).

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

    .raku of a Str escapes a grapheme led by a Prepend or Extend codepoint.

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), Syntax & parsing (1).

rakudo-t-language-gaps-4Raku++ passesRakudo passes2026-10-05 · c5326843
  1. 7

    A Label's .gist shows the source around it, and its .Str is NAME file:line.

More from this test: Compile-time errors (1), Classes, roles & the MOP (3), Operators (2), Regexes & grammars (1), Scoping & phasers (1).

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

    In 6.e, %f renders a Num as C does (exact expansion, ties to even) and a Rat exactly with ties to even, and %F uppercases Inf.

More from this test: Compile-time errors (1), Concurrency (1), Classes, roles & the MOP (1), Everything else (2), Signatures & dispatch (2).

roast-sweep-runtimeRaku++ passesRakudo cannot run it2026-09-28 · 2cc896bd
  1. 26

    A Method's .gist is its bare name. inferred

More from this test: Compile-time errors (4), Concurrency (2), Containers & assignment (2), Exceptions & control flow (2), Hashes & sets (4), I/O & processes (3), Lists & laziness (5), Modules (2), Classes, roles & the MOP (8), Operators (4), Everything else (1), Regexes & grammars (1), Scoping & phasers (14), Strings & Unicode (1), Types & coercion (3).

roast-sweep-signaturesRaku++ passesRakudo does not pass2026-09-28 · 2cc896bd
  1. 3

    Capture.raku keeps a positional Pair a Pair and renders a named argument as a colonpair. inferred

    \(1, 2, "a" => 3).raku is \(1, 2, "a" => 3) and \(1, a => 3).raku is \(1, :a(3))

  2. 4

    A Signature inside a list renders in .raku as its literal. inferred

    (:(Int $x),).raku is (:(Int $x),)

  3. 5

    A ::?CLASS parameter type in a role renders as ::?CLASS in the signature's .raku. inferred

    :($a, ::?CLASS $c)

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

rw-returns-and-container-traitsRaku++ passesRakudo passes2026-08-30 · 9e00135b
  1. 5

    .rakuseen runs the block it is given to produce an object's .raku text, and guards against cycles. inferred

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

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

    .Str(:superscript) and .Str(:subscript) render an integer in superscript or subscript digits, with ¹²³ at their own codepoints outside the U+2070 run.

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

self-referential-renderRaku++ passesRakudo passes2026-09-14 · 2b013edd · #85
  1. 1

    .gist of a self-referential container terminates, stays short and marks the cycle once rather than printing nested copies of itself.

    after @a ,= 3, say @a names the cycle instead of nesting it

More from this test: divergences (1).

seq-bigint-gist-capRaku++ passesRakudo passes2026-08-08 · 718e1af9
  1. 2

    A list's .gist shows at most 100 elements followed by ..., while .Str and .raku stay complete.

More from this test: Numerics (1).

setty-strRaku++ passesRakudo passes2026-08-05 · 271e54e8
  1. 1

    .Str of a Set, Bag or Mix is its elements joined by spaces, written elem(weight) for a weight other than 1.

    ([(^)] @case.words).Str is orange

signature-text-names-types-as-rakuRaku++ passesRakudo passes2026-11-07 · 32b1ea01 · #220
  1. 1

    A signature's text names each type as the type's .raku does.

    sub f(Pointer $x) renders :(NativeCall::Types::Pointer $x)

  2. 3

    A coercion type's smiley belongs to its target and is written first in a signature's text, and a coercion return type keeps its source.

    Str:D(Int) $y renders Str:D(Int) $y, not Str(Int):D $y

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

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

    .Stringy is available on every value and calls .Str, unless the class defines its own Stringy.

    RT::GET.Stringy is GET; (1, 2).Stringy is 1 2; Buf.new(1).Stringy dies

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

split-adverbs-and-regex-valuesRaku++ passesRakudo passes2026-07-26 · 16eefbba
  1. 5

    A Regex gists as the literal that makes it, while .Str is the bare pattern.

More from this test: Regexes & grammars (1), Strings & Unicode (3).

sprintf-integer-directive-edgesRaku++ passesRakudo passes2026-11-10 · a8ac64a6
  1. 1

    sprintf's integer directives %d, %x, %o, %b and %u print the exact integer of a Num larger than an int64.

    sprintf("%d", 1e30) is the exact integer of 1e30, not 9223372036854775807

  2. 2

    sprintf's integer directives refuse an infinite or NaN Num, with an error that names the directive and the type.

  3. 3

    sprintf's %c refuses a value that is no codepoint.

    %c given -1 or 0x110000 is refused

sprintf-percent-takes-widthRaku++ passesRakudo passes2026-11-10 · a8f46ba4
  1. 1

    sprintf's %% with a width pads its percent sign as any directive pads its output, and %05% zero-pads it.

    sprintf("%5%|%-5%|") is " %|% |"

sprintf-s-exception-messageRaku++ passesRakudo passes2026-10-30 · 594d4aac
  1. 1

    sprintf('%s', $e) of an exception whose class writes only message prints the message, as ~$e, "$e" and $e.Str do.

str-of-object-ignores-gistRaku++ passesRakudo passes2026-10-02 · 925260b1
  1. 1

    An object whose class has a gist but no Str stringifies under prefix ~, interpolation, infix ~ and join as .Str does (Type<id>), not through its gist.

str-range-consumersRaku++ passesRakudo passes2026-07-22 · 437647ae
  1. 1

    A Range with Str endpoints such as "a".."c" is a real Range value, and stringifying it gives its elements, not one endpoint. inferred

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

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

    put and print of an object honour its user-defined method Str, through a file handle and through the sub form.

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

systemic-raku-and-version-spellingRaku++ passesRakudo passes2026-11-27 · 0fef8e51 · #279
  1. 1

    A Systemic object ($*KERNEL, $*DISTRO, $*VM, $*RAKU) is an object of its class: .raku gives Kernel.new(name => …, …), .WHAT the type object, and a method it lacks dies or answers as Any's does.

    dd $*KERNEL shows Kernel.new(name => …, version => …, …)

    Also held by systemic-objects.

  2. 2

    Version.new spells a version as its parts joined by dots, not as the string was written.

    Version.new("1.2-3") is v1.2.3

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

todo-small-divergencesRaku++ passesRakudo passes2026-10-10 · 79f0bc7c
  1. 1

    .WHICH renders as the ObjAt it is: an enum member's is E|index and a type object's is Name|U….

  2. 11

    A lazy Seq joins as ....

  3. 14

    .raku of a HyperSeq shows its configuration.

More from this test: Concurrency (1), Containers & assignment (2), Lists & laziness (3), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (1), Scoping & phasers (2), Types & coercion (3).

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

    Prefix ~ and string interpolation call an object's user method Str, and a nextsame inside it reaches the built-in Str.

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

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

    List.fmt with a two-directive format formats each Pair element as its key and its value.

    (1 => 2, 3 => 4).fmt('%s: %s', ', ') is 1: 2, 3: 4

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), Strings & Unicode (2), Syntax & parsing (3), Types & coercion (6).

tr-smartmatch-answers-the-stringRaku++ passesRakudo passes2026-11-13 · 6b709af5 · rakudo#1551
  1. 2

    The StrDistance a tr/// returns shows as its constructor under .gist and .raku, while it stringifies to the new string.

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

type-object-stringifies-emptyRaku++ passesRakudo passes2026-07-28 · ea54be66
  1. 1

    A type object stringifies to the empty string — in ~Int, "{Int}", put Int and .join — while (Int) is only its gist.

typed-array-raku-undefined-elementRaku++ passesRakudo passes2026-11-09 · 564eec50
  1. 1

    .raku of a typed Array writes an undefined element as the array's element type.

    my Cool @a = Int, 1; @a.raku is Array[Cool].new(Cool, 1)

uni-and-date-renderingRaku++ passesRakudo passes2026-07-28 · fd043afc
  1. 1

    A Uni, NFC, NFD, NFKC or NFKD value gists in its hex-codepoint form also through say and inside a container, and its .Str is the decoded text.

    NFD:0x<0044 0323>

  2. 2

    The result of .NFD (or another normalization method) is of that normalization form, so its .gist starts with NFD: and its .raku ends in .NFD.

More from this test: Dates & times (1).

user-str-in-join-and-sprintfRaku++ passesRakudo passes2026-09-16 · 7442d018
  1. 1

    The join sub and sprintf("%s", $obj) stringify an object through its own method Str, as @list.join does.

    join('; ', @objs) uses each object's Str method