Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created March 5, 2023 11:36
Show Gist options
  • Save lizmat/0dfb6aca8962742ea6b975193c652d0f to your computer and use it in GitHub Desktop.
Save lizmat/0dfb6aca8962742ea6b975193c652d0f to your computer and use it in GitHub Desktop.
Constant fail?
use v6.*;
my $ast := RakuAST::Statement::Expression.new(
expression => RakuAST::VarDeclaration::Constant.new(
name => "foo",
initializer => RakuAST::StrLiteral.new("bar")
)
);
dd $ast.EVAL;
# ForeignCode <anon> = The 'ForeignCode' class is a Rakudo-specific implementation detail and has no serviceable parts inside
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment