Skip to content

Instantly share code, notes, and snippets.

@fecundf
fecundf / trait-chain-leak.p6
Created August 23, 2020 20:17
Work in progress about Raku traits leaking when more than one applied, maybe.
#!/usr/bin/env raku
use v6;
use Test;
multi trait_mod:<is> (Routine \routine, :$equality-A!) {
trait_mod:<is>(routine, :equiv(&infix:<==>));
}
multi trait_mod:<is> (Routine \routine, :$equality-B!) {
@fecundf
fecundf / jmp
Created June 1, 2016 17:03
Unix + windows version of Nigel Hamilton's jmp browser
#!/usr/bin/env perl6
#--------------------------------------------------------------------------------
# Nigel Hamilton (2016) - Artistic Licence 2.0
#
# jmp - Perl6 powered tools for quickly jmping to the next thing in your workflow
#
# - please add subcommands for your own workflow. For example, you could jmp to:
#
# - log files
ar => lib
arflags => /nologo
arout => /out:
asm => .asm
asmout => /Fa
asmswitch => /c /FAs
auxclean => $(RM) moar.ilk moar.pdb moar.dll.lib moar.dll.exp vc100.pdb
be => 0
bindir => C:\rakudo\bin
booltype => 0
#!/usr/bin/env perl
# Pragmas
use 5.020; # Also turns on "use strict" ever since 5.012
use warnings;
no warnings qw(experimental::signatures);
use feature qw(signatures);
# Using a signature means less work to set up arguments
sub main ($utterance) {