python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
"compose_attributes" is apparently called before attributes are composed
This is another attempt to do this thing, essentially create a frozen class:
my class MetamodelX::Frozen is Metamodel::ClassHOW {
method compose_attributes(Mu \type) {
for self.attribut...
jjmerelo
Votes: 0
Answers: 1
Enforcing read-only attributes from the metaclass
Yes, still going with this. My impression is that there's this powerful facility in Raku, which is not really easy to use, and there's so little documentation for that. I'd like to kind of mitigate t...
jjmerelo
Votes: 0
Answers: 0
Enforcing single instances from the metamodel
I know that it's way easier to ensure single instances from the class level, and that there's the excellent Staticish module from Jonathan Stowe that does the same by using roles, but I just want to t...
jjmerelo
Votes: 0
Answers: 1
What counts as a newline for Raku *source* files?
I was somewhat surprised to observe that the following code
# comment
say 1;
# comment
say 2;
# comment say 3;
# comment say 4;
prints 1, 2, 3, and 4.
Here are the relevant characters after "#...

codesections
Votes: 0
Answers: 1