Welcome the channel on the development of Cro, a set of libraries for building reactive distributed systems, lovingly crafted to take advantage of all the Raku Programming Language has to offer (cro.services). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
06:56 xinming left 11:47 xinming joined 12:47 Xliff joined
|Does Cro::WebApp::Template have a given/when mechanism?|
13:25 xinming left 13:26 xinming joined
|Altai-man||Xliff, no (maybe "not yet").||13:44|
|Xliff||Altai-man: It can be done. Just a series of <?.topic eq "value>...</?> statements.||14:45|
|But I think a mechanism could be developed where it could be nicer.|
|<*.topic><- value1></-><- "Value 2"></-></*>||14:47|
|That would expand out into what I just said, above.|
|Altai-man||Xliff, aaaah, I misunderstood you, sorry. I thought you want `given` to define a "sub-topic", not to match. for given/when yes, conditions will do, there is no sugar to this though.||16:49|
|Xliff||Do you think that little bit of sugar I suggested above would be a worthwhile PR?||18:31|
|japhb||Xliff: Normally I would say "Ask jnthnwrthngtn whether he likes that syntax and is likely to accept it first, so as to avoid rework" -- but he's on vacation, so you might have to decide if it's worth the risk of having to rework it if he decides on different sugar.||18:32|
|Xliff||japhb: Good point. I think I'll poike around with it, then. What can it hurt? Thanks for the help, everyone!||19:25|
21:23 lizmat left 21:24 lizmat joined 22:40 Geth left, Geth joined 23:31 RakuIRCLogger left