[00:12] *** maylay left
[00:13] *** maylay joined
[00:28] *** maylay left
[00:31] *** maylay joined
[00:38] *** maylay left
[00:38] *** maylay joined
[00:41] *** hvxgr left
[00:54] *** shareable6 left
[00:56] *** shareable6 joined
[01:07] *** maylay left
[01:19] *** maylay joined
[01:20] <SmokeMachine> I use dynvars a lot to stuff like:

[01:20] <SmokeMachine> m: sub html(&block, *%attrs) { my @*children; block; [ "<html { %attrs.map({ "{.key}={.value}" }).join: " " }>", @*children.join("\n").indent(4), "</html>", ].join: "\n" }; sub p($text) { @*children.push: "<p>{ $text }</p>" }; say html { p "a string" }'

[01:20] <camelia> rakudo-moar e17a1d43b: OUTPUT: «===SORRY!=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> text }</p>" }; say html { p "a string" }<HERE>'␤    expecting any of:␤        infix␤        infix stopper␤        postfix…»

[01:20] <SmokeMachine> m: sub html(&block, *%attrs) { my @*children; block; [ "<html { %attrs.map({ "{.key}={.value}" }).join: " " }>", @*children.join("\n").indent(4), "</html>", ].join: "\n" }; sub p($text) { @*children.push: "<p>{ $text }</p>" }; say html { p "a string" }

[01:20] <camelia> rakudo-moar e17a1d43b: OUTPUT: «<html >␤    <p>a string</p>␤</html>␤»

[01:30] *** maylay left
[01:32] *** maylay joined
[01:35] <disbot6> <beato3> Ohh!! SmokeMachine

[01:35] <disbot6> <beato3> That seems like a neat use indeed

[01:38] <disbot6> <beato3> The async functionality I think is most relevant to my current program

[01:39] *** maylay left
[01:39] <disbot6> <beato3> But I guess I wanna have an example of Raku best practice more generally

[01:49] *** maylay joined
[01:54] *** maylay left
[02:02] *** maylay joined
[02:13] *** hulk joined
[02:14] *** kylese left
[02:26] <disbot6> <antononcube> Maybe look into “LLM::Graph” — it provides asynchronous execration of graph nodes with directed dependencies between them.

[02:27] <disbot6> <antononcube> Shameless, plug, BTW. But, I found it neat for I can do asynchronous version of any function with wrappers.

[02:31] *** maylay left
[02:32] *** maylay joined
[02:46] *** mahlay joined
[02:47] *** maylay left
[03:15] *** hulk left
[03:15] *** kylese joined
[03:21] *** mahlay left
[03:28] *** maylay joined
