🦋 Welcome to the IRC channel of the core developers of the Raku Programming Language (raku.org #rakulang). This channel is logged for the purpose of history keeping about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Logs available at irclogs.raku.org/raku-dev/live.html | For MoarVM see #moarvm
Set by lizmat on 8 June 2022.
Geth rakudo/main: 093009a0de | (Elizabeth Mattijsen)++ | 4 files
RakuAST: adding support for comments (Part 1/N)

  - adds an action for comment:sym<#>
  - adds a RakuAST::Statement::Comment class, along with its
   .raku and .DEPARSE versions
  - attempts to attach lines with just comments, but fails
That last one needs more thought still. Also how to handle comments that are part of a statement.
13:14
patrickb m: enum E <one>; role R { has $.e = one; method m() { say $!e ~~ one; } }; R.new.m; 21:45
camelia False
patrickb m: enum E <one>; class R { has $.e = one; method m() { say $!e ~~ one; } }; R.new.m;
camelia True
patrickb ^ Is this a known bug?
lizmat m: enum E <one>; role R { has $.e = one; method m() { say $!e } }; R.new.m; 21:57
camelia one