Day 6: Declarative APIs, easy peasy with Raku

Raku APIs tend to be easy to read, with named arguments alleviating the need to remember argument order in method calls, for example. But sometimes a library author goes above and beyond to produce extra nice, declarative APIs. One example is Cro, a framework for writing HTTP-based services, which allows you to write things likeContinue reading “Day 6: Declarative APIs, easy peasy with Raku”

RFC 64: New pragma ‘scope’ to change Perl’s default scoping

Let’s talk about a fun RFC that mostly did not make its way into current day Raku, nor is it planned for later implementation. This is about RFC 64 by Nathan Wiger. Let me quote the abstract: Historically, Perl has had the default “everything’s global” scope. This means that you must explicitly define every variableContinue reading “RFC 64: New pragma ‘scope’ to change Perl’s default scoping”

RFC 112 by Richard Proctor: Assignment within a regex

Richard wanted to… Provide a simple way of naming and picking out information from a regex without having to count the brackets. I can say without hesitation that Raku (and before its rename, Perl 6) has achieved this goal — but all the details are different than proposed. The reason is two-fold. For one, RichardContinue reading “RFC 112 by Richard Proctor: Assignment within a regex”