use experimental :macros;
macro ic($expr) {
my $ic = "\c[ICE CREAM]";
quasi {
note "$ic| $expr.Str.trim() = " ~ {{{$expr}}}.raku
}
}
my $x = 3;
ic $x;
ic 'this'.uc;
sub foo($i) {
$i + 333
}
ic foo(123);
my %d = (key => (1 => 'one'));
ic %d<key><1>;
class Klass {
has $.attr = 'yep';
}
ic Klass.new.attr;