01:35
frost joined
01:54
razetime joined
03:33
Guest35 left
03:47
destroycomputers left
07:03
razetime left
07:37
razetime joined
09:00
uzl[m] left
10:05
razetime_ joined,
razetime_ left
12:02
razetime left
12:30
razetime joined
13:12
destroycomputers joined
13:16
Guest35 joined
13:36
discord-raku-bot left,
discord-raku-bot joined
15:09
frost left
15:18
razetime left
20:12
defaultxr joined
|
|||
defaultxr | hi. why does the repl echo back strings without quotes? it seems kind of unintuitive to me since it makes it impossible to differentiate glance between ["foo", "bar"] and ["foo bar"] at a glance. is there some way to make it include quotes? | 20:19 | |
Nemokosch | I think it uses the textual representation by default | 20:20 | |
you could use dd | |||
or .raku on the thing you want to log | 20:21 | ||
m: dd ["foo", "bar"] | |||
generally if I want to just get something back, I go like <expression> andthen .raku | 20:22 | ||
andthen has very low precedence | |||
and it sets the LHS to the topic variable so .raku will act upon that | 20:23 | ||
defaultxr | thanks. i am aware of the .raku method; i guess my question is more whether there a way to make it print the literal representation by default? i personally can't imagine ever preferring the textual representation when i'm writing code | 20:25 | |
Nemokosch | I wouldn't be surprised if something like that existed but I've never seen anything like that | 20:52 | |
Nahita | defaultxr: you can try setting environment variable `RAKU_REPL_OUTPUT_METHOD` to `raku` | 22:24 | |
it comes closer but the `repl-print`'s signature has `$value` so arrays are printed with $ in front of them due to containerization I guess | 22:25 | ||
perhaps `repl-print` might switch to `\value` in its signature? but idk the implications enough to say if it will break things | |||
perhaps `repl-print` might switch to `\value` in its signature? but idk the implications enough to say if it will break things or will it work at all | 22:36 | ||
no, `\value` doesn't work | 22:44 | ||
no, `\value` doesn't make the difference | |||
mightgrabacoffee | When FIRST is ran using 'filename.csv'.IO.lines in a for loop, its stars on init... so does that mean I will the first line, then the for loop will read the first line again? | 22:50 | |
When FIRST is ran using 'filename.csv'.IO.lines in a for loop, its stars on init... so does that mean it'll will read the first line, then the for loop will read the first line again? | |||
23:34
discord-raku-bot left,
discord-raku-bot joined
|
|||
defaultxr | Nahita: thank you, that's definitely much better! the dollar sign on arrays is fine, i mostly just want to avoid being confused by the output | 23:36 | |
Nahita | you're welcome | 23:49 |