🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
lizmat weekly: twitter.com/gugod/status/1756321207396512118 16:38
notable6 lizmat, Noted! (weekly)
[Coke]_ m: "1️⃣".ord.say 20:39
camelia 49
[Coke]_ m: "1".ord.say 20:40
camelia 49
[Coke]_ I would expect e1️⃣ to be special if you're trying tdo maths, but take a string op?
lizmat .ord takes the first codepoint
[Coke]_ oof 20:41
[Coke]_ what I really want is, given boxed 1, to get boxed 2. 20:41
lizmat m: my $a = "1️⃣"; say $a; $a++: say $a 20:42
camelia ===SORRY!=== Error while compiling <tmp>
Confused
at <tmp>:1
------> my $a = "1️⃣"; say $a; $a++:⏏ say $a
expecting any of:
colon pair
lizmat m: my $a = "1️⃣"; say $a; $a++; say $a
camelia 1️⃣
1️⃣
lizmat hmmm guess it's not not in the magic list
*not
31 DIGIT ONE 1 FE0F VARIATION SELECTOR-16 ️ 20E3 COMBINING ENCLOSING KEYCAP ⃣ 20:44
is what 1️⃣ is
[Coke]_ (1) works for my need right now, thanks. 20:45
librasteve I like ① 21:08
① CIRCLED DIGIT ONE Unicode: U+2460, UTF-8: E2 91 A0 21:09
m: say ① + 2; 21:10
evalable6 3
Raku eval 3
lizmat m: my $a = "①"; $a++; say $a
camelia
lizmat that one *is* in the magic list
librasteve .oO 21:11
lizmat m: my $a = "①"; $a++ for ^8; say $a
camelia
lizmat m: my $a = "①"; $a++ for ^9; say $a
camelia
lizmat m: my $a = "①"; $a++ for ^19; say $a
camelia
lizmat m: my $a = "①"; $a++ for ^20; say $a
camelia ①①
lizmat yeah :-(
librasteve m: say ㉗ + ❶ 21:13
evalable6 28
Raku eval 28
librasteve m: say ㉗++
evalable6 (exit code 1) Cannot resolve caller postfix:<++…
Raku eval Exit code: 1 Cannot resolve caller postfix:<++>(Int:D); the following candidates match the type but require mutable arguments: (Mu:D $a is rw) (Int:D $a is rw --> Int:D) The following do not match for other reasons: (Bool:D $a is rw) (Bool:U $a is rw --> Bool::False) (Mu:U $a is rw) (Num:D $a is rw) (Num:U $a is rw --> 0e0) (int $a is rw --> int) (num $a is rw --> num) (uint $a is rw --> uint)
in block <unit> at main.raku line 1
evalable6 librasteve, Full output: gist.github.com/7b967fd462b87f4733...e9a42cc2d8
librasteve oops 21:14
lizmat afk&
librasteve www.reddit.com/r/Unicode/comments/...51_to_100/ 21:19
coleman The docs.raku.org site's server is being rebooted. You may get a little downtime. 21:21
We should be back. 21:24
El_Che coleman: thank you 22:22