Wenzel P. P. Peppmeyer
Wenzel P. P. Peppmeyer
The following example works in HEAD and likely did so for quite some time. ``` class __px {} multi postcircumfix:(__px, @a) { "interpolation of @a[]" } constant term: = __px;...
With v6.e we will get SemiLists, both in assiciative and positinal subscribts. ``` my @a = ; my %h; %h{||@a} = 42; say %h; # OUTOUT: {1 => {2 =>...
Currently there is no declarative way to define coercers for parameterised roles. ``` role R[::T] {} class A { method m(R[Int]() $_) { say $_ ~~ R[Int] } } class...
As discussed (once-again) here: https://irclogs.raku.org/raku/2024-02-15.html#03:47-0002 The error tends to create confusion. It would ofc be better to have a proper HLL-Exception so it could be cought. Alas, this is beyond...
``` class Programmer { has $.fun with $*Raku; } class Zombi { has $.fun if $*dead; } ``` Although all programmers should have fun with Raku. This `with`-statement (and likely...
In https://docs.raku.org/language/create-cli @-sigiled options like `:@your-repeatable-args` are not documented. Example example as follows. ``` use v6.d; my @*ARGS=; sub MAIN(:@foo) { dd @foo; # ["abc", IntStr.new(123, "123")] } ```
They are specced in `S06-signature/type-capture.t` as: `sub ret_TDC(::T \t, $v --> T:D())` but apply to none-capture type constraints as well. Should be added in `https://docs.raku.org/language/signatures#Return_type_arrow:_-->` .
`.^language-revision` is specced in `S14-roles/versioning.t` and implemented in `https://github.com/rakudo/rakudo/blob/5c4f9efe11cbcd1911341bacee7f917bc19406d6/src/Perl6/Metamodel/LanguageRevision.nqp#L82` but not documented. In fact type/Metamodel/LanguageRevision is missing entirely. It should be cross-referenced with /type/Version and referenced in /language/pragmas#v6.x and /language/typesystem...