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:01 avuserow left 08:39 xinming left 10:16 xinming joined 10:41 xinming left 11:25 Xliff joined 11:40 xinming joined
Geth cro-http/link-gen-no-fork: d8cd5f580c | Altai-man++ | 2 files
cro-webapp/link-support: 524b988471 | Altai-man++ | 4 files
Xliff jnthnwrthngtn: What would you suggest is the best way to mark templates in a directory from being subject to compile-all? 13:00
I have an easy change that allows templates ending with ".off" or ".disabled" to be excluded.
Would that be a fair PR for Cro::WebApp::Template::Repository?
jnthnwrthngtn I thought compile-all already took a filtering argument? 13:01
Xliff Ah. Was that mentioned in the docs? 13:02
jnthnwrthngtn Dunno
Maybe not
Probably it's got API docs
(The declarator ones)
Xliff OK. Will look. Thanks! 13:04
Yep. There was a mention there. Mea culpa. 13:08
jnthnwrthngtn: Is there any way to force the order of fields? 13:48
I have one field that is comprised in a role, and the other is in the class. 13:49
I would like the one in the role to appear first on the form.
jnthnwrthngtn No, although you could use `is` with the role to force inheritance instead
Which I think would get the thing you want
hm, or at least, I think it made it do that kinda thing with inheritance, but I may not have 13:52
Xliff OK, so how would that work with submethod BUILD?
I think all "$!attributes" will have to be replaced with self.attribute 13:53
jnthnwrthngtn Doubt BUILD is a problem since that's worked well with inheritance far longer than it has with roles 13:54
But yes, there's the visibility change issue if you're referring to attributes
Xliff Yes. Using "is" does not affect form order. 13:55
So I was trying to comprise a self-contained role that contained attribute and select method.
jnthnwrthngtn Ah, then probably I didn't make it do base-class first
Xliff Would that be a hard thing to add? 13:56
jnthnwrthngtn Probably easy 13:58
At github.com/croservices/cro-webapp/...m.pm6#L386
Try something like self.^mro.reverse.map({ |.^attributes(:local) }).grep(*.has_accessor)
Xliff Heheh! I almost had exactly that. 13:59
Perfect! 14:00
19:23 TempIRCLogger left, TempIRCLogger joined 19:34 TempIRCLogger left 19:35 TempIRCLogger joined 20:52 TempIRCLogger left, TempIRCLogger joined 22:42 jgaz joined 22:55 xinming left 22:58 jgaz left