This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
00:41 SysWOW64 joined
SysWOW64 Waku waku! 00:41
00:58 SysWOW64 left 04:02 Heptite left 04:37 Kaiepi joined 12:49 Heptite joined 12:54 frost joined 14:14 frost left 14:21 ae_chep joined
ae_chep What's happening here? `my $x = foo() and bar()` is truthy even when `bar()` is falsy. I had to put the entire statement in paranthesis 16:26
Kaiepi `$x` being truthy/falsy? 16:35
ae_chep yes, I ended up finding $x to be `True` when both `foo()` and `bar()` was False
Kaiepi if `foo()` were truthy, `and`'s looser associativity compared to `=` would prevent `bar()` from being assigned 16:39
but if both are falsey, i'm not sure how that'd occur from this statement alone 16:41
ae_chep no the first one is falsy
and I assumed the `and` to have higher precedence than the assignment 16:42
I think assignment has the higher precedence, in this case
Kaiepi there is an `&&` with a tighter precedence you could get rid of the parentheses with 16:46
ae_chep I see, thank you 17:12
18:16 avuserow joined 19:06 ae_chep left 21:39 discord-raku-bot left 21:40 discord-raku-bot joined
Heptite I'm just under a third of the way through Learning Perl 6, and I'm wondering if there are people who remember ALL of the language's grammar, operators, etc? 23:59