Day 225: Demagicalized pairs!

autrijus on 2005-10-16T19:32:33

I didn't get to do much slide hacking, as the lack of sleep on the ferry and airplanes are kicking in, but what I have so far is at Pugs.xul. You'll notice that I am in serious Unicode-abuse mode...

scook0 valiantly demagicalized pairs. This means foo($thing) now always pass $thing positionally to &foo, even if $thing happens to be a Pair.

On the flip side, foo(bar => $baz) now always passes $baz by the name bar, even if &foo expects Pairs. Hurray for sanity!

For some context behind this pair-magic situation, consult the thread "Demagicalizing pair" on p6l started by luqui, #perl6's consensus-building discussion, and Larry's rulings.

iblech then proceeded to update PIL2JS accordingly, which means that PIL2JS is the first backend which fully supports demagicalized pairs -- it passes all of the 26 tests of t/syntax/pairs.t.

Stevan hacked in a minimal parser for Perl6-style class declaration for the Perl5 metamodel, to test out the eventual integration with PIL2. We bounced a couple ideas at #perl6 about serializing compile-time class objects, but sleep deprivation starts kicking in. As putter so wisely put, one probably should not get burnt out at the beginning of a conference, so I'll catch some sleep now. See ya! :)