|
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. |
|||
|
02:24
teatwo left,
teatwo joined
02:28
tea3po joined
02:31
teatwo left
02:41
tea3po left,
tea3po joined
08:07
dakkar joined
13:28
jgaz left,
jgaz joined
14:18
tea3po left,
tea3po joined
15:46
tea3po left,
tea3po joined
16:36
dakkar left
17:06
ab5tract joined
17:42
ab5tract left
18:31
deoac joined
|
|||
| deoac | A question about the REPL | 18:31 | |
| [0] > sub infix:<neq>($a, $b) {return ($a ne $b)}; say 'a' neq 'b'; | |||
| True | |||
| [0] > say 'a' neq 'b'; | |||
| ===SORRY!=== Error while compiling: | |||
| Two terms in a row | |||
| ------> say 'a'⏏ neq 'b'; | |||
| expecting any of: | |||
| infix | |||
| infix stopper | |||
| postfix | |||
| statement end | |||
| statement modifier | |||
| statement modifier loop | |||
| [0] > &infix:<neq>.WHAT | |||
| (Sub) | |||
| Why the error on the second command? | |||
| lizmat | hmmm... I'm not seeing that, I see: | 18:43 | |
| ===SORRY!=== Error while compiling: | |||
| Undeclared routine: | |||
| infix:<neq> used | |||
| deoac | my setup: | 18:57 | |
| Welcome to Rakudo™ v2023.04. | |||
| Implementing the Raku® Programming Language v6.d. | |||
| Built on MoarVM version 2023.04. | |||
| lizmat | aahh.. oops, I missed the first line | 18:59 | |
| yeah, that's a known REPL issue: some definitions do not carry over from one statement to the next in the REPL | 19:00 | ||
| and actually, it's not the definition in this case, but the change in the grammar for the new infix op | |||
| if you do: &infix:<neq>('a','b') it will say True | 19:02 | ||
| sorry for the misdirection... | |||
|
19:24
thowe left
|
|||
| deoac | lizmat thank you | 21:38 | |
| Is `\S` the same as `\w` ? If not, what characters fail to match either one? | 21:41 | ||
| lizmat | <![\S \w]> perhaps? | 22:12 | |
| avuserow | `\S` is all non-space characters. `\w` is all "word" characters (roughly letters, numbers, underscore, plus unicode equivalents), so `\S` is a superset of what `\w` matches | 23:42 | |