Ancestors

Written by Julia on 2024-09-16 at 17:23

How do I specify the default definedness?

I know it's possible because I've done it before, but I can't recall how to do it. It was something like "use :D;" but that's not quite right…

[#]RakuLang

=> More informations about this toot | More toots from julia@mathstodon.xyz

Written by Julia on 2024-09-16 at 17:29

Of course! I can't believe I missed that. It was right in my face (I was staring at https://docs.raku.org/language/pragmas) all along.

use variables :D;

There we go.

[#]RakuLang

=> More informations about this toot | More toots from julia@mathstodon.xyz

Toot

Written by Julia on 2024-09-16 at 17:39

Except…

“Cannot put a type constraint on an 'our'-scoped variable”

Thankfully, the “variables" pragma seems to apply only to the compilation unit(?) in which it appears, so it's easy enough to move it to a rakumod file.

#RakuLang

=> More informations about this toot | More toots from julia@mathstodon.xyz

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113148452072473835
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
284.499024 milliseconds
Gemini-to-HTML Time
0.711927 milliseconds

This content has been proxied by September (ba2dc).