Official announcement of the start of The Raku Foundation
dev.to5 pointsby lizmat2 comments
$ raku -e 'say Q|say "Hello World!"|.AST'
RakuAST::StatementList.new(
RakuAST::Statement::Expression.new(
expression => RakuAST::Call::Name::WithoutParentheses.new(
name => RakuAST::Name.from-identifier("say"),
args => RakuAST::ArgList.new(
RakuAST::QuotedString.new(
segments => (
RakuAST::StrLiteral.new("Hello World!"),
)
)
)
)
)
) my $a of Int = 42;
say $a; # 42
or my $a of Int = "foo";'
# Type check failed in assignment to $a; expected Int but got Str ("foo")
? sub EXPORT() { Map.new: "&frobnicate" => &sum }
would import the core's "sum" routine, but call it "frobnicate" in the imported scope.
raku -e 'say "etbjxntqrdke".comb.map(*.succ).join'