|
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:59
sibl joined
03:41
human-blip left
04:10
sibl left
04:12
sibl joined
04:21
sibl left,
sibl joined
|
|||
| disbot4 | <librasteve> m: my @a=1,2,3; for @a -> $x {$x=42}; | 04:44 | |
| <Raku eval> Exit code: 1 Cannot assign to a readonly variable or a value in block <unit> at main.raku line 1 | |||
| <librasteve> m: my @a=1,2,3; for @a -> $x is copy {$x=42}; say @a | 04:50 | ||
| <Raku eval> [1 2 3] | |||
| <librasteve> m: my @a=1,2,3; for @a -> $x is really {$x=42}; say @a | 04:51 | ||
| <Raku eval> Exit code: 1 ===SORRY!=== Error while compiling /home/glot/main.raku Can't use unknown trait 'is' -> 'really' in a parameter declaration. at /home/glot/main.raku:1 expecting any of: rw readonly copy required raw leading_docs trailing_docs | |||
| <librasteve> m: my @a=1,2,3; for @a -> $x is rw {$x=42}; say @a | |||
| <Raku eval> [42 42 42] | |||
| <librasteve> the default trait for all block parameters is “is ro” (read only), Raku is “strangely consistent” so does matter whether that’s a pointy or a regular sub declaration | 04:53 | ||
| <simon_sibl> anyone would be able to help me with this, I get an error I am not sure what it means about NFA statelist: glot.io/snippets/hj6liwdsmp | 05:30 | ||
| <simon_sibl> is it something obvious ? | |||
| <simon_sibl> glot.io/snippets/hj6mbv0ip1 | 05:59 | ||
| <simon_sibl> this works ! | |||
| <simon_sibl> without :sym | |||
| <librasteve> i just golfed your error to <[-*_]> ** 3..* | |||
| <librasteve> something to do with the last * | 06:01 | ||
|
06:01
sibl left
|
|||
| disbot4 | <librasteve> smells like a bug to me | 06:02 | |
|
06:03
sibl joined
|
|||
| disbot4 | <simon_sibl> aaaah indeed | 06:04 | |
| <simon_sibl> the range | |||
| <librasteve> this gives a (related?) different error <[-*_]> ** (3..*) | |||
| <librasteve> Quantifier quantifies nothing at /Users/stephenroe/scum/scum.raku:13 ------> <[-*_]> **⏏(3..*) | 06:05 | ||
| <librasteve> suggest you file this as a rakudo Issue ... (unless someone smarter than me comes by and sets me right) | |||
|
06:23
sibl left
06:24
sibl joined
|
|||
| disbot4 | <simon_sibl> I will see if anyone today can find the reason, otherwise I will open an issue, in the meantime I use 3..99 😆 | 06:28 | |
| <simon_sibl> 30 Raku lines for a basic Markdown, pretty nice | |||
| <librasteve> 👍 | 06:34 | ||
|
07:49
sibl left
07:54
sibl joined
08:11
sibl left
08:17
sibl joined
|
|||
| disbot4 | <simon_sibl> github.com/4zv4l/rmk/blob/main/rmk.raku tadaaaaa 😆 any criticism are welcome to improve my skills | 08:49 | |
| <librasteve> very nice! | 09:22 | ||
| lizmat | .oO( for bonus points: create an action class that converts to ePub :-) |
09:24 | |
| but seriously, cool work! | |||
| disbot4 | <librasteve> definitely … the Air module depends on Text::Markdown which really is too picky about what it accepts compared to github markdown but it was the most pragmatic solution at the time | 09:32 | |
| <librasteve> ideally i would like Air to be able to inline markdown as a slang … so since you have a grammar (unlike Text::Markdown) my challenge is to make a Slang that issues HTML … double brownie points if it uses Air::Functional | 09:37 | ||
| <librasteve> in line with John Gruber original notion “Markdown is essentially a human-friendly shorthand for HTML.” | 09:38 | ||
| <librasteve> the slang part is just a couple of lines based on the Slangify module btw (instructions are provided) | 09:39 | ||
|
09:59
sibl left
|
|||
| disbot4 | <simon_sibl> I never touched slangs, I’ll take a look at slangify, basically you want to allow to write markdown as Raku code (kinda like a dsl) ? That would be translated to html | 10:11 | |
| <librasteve> im cool to write the HTML generation Actions (if you like) - to best collaborate, suggest you place in some (github.com or similar) repo then i can fork and make a PR | 10:14 | ||
| <simon_sibl> I am good to do anything to contribute honestly, bonus point if other people also help, so that I can learn more | 10:32 | ||
| <librasteve> great | |||
| <simon_sibl> hmmm not sure to figure out Slangify works or how to do this correctly: glot.io/snippets/hj6vkfr40h and AI isnt helping much xD | 11:34 | ||
|
11:52
librasteve_ left
14:27
librasteve_ joined
15:01
human-blip joined
15:57
human-blip left
15:59
human-blip joined
16:37
librasteve_ left
20:31
Guenter joined
20:36
Guenter left,
Guenter joined,
Guenter left
|
|||