Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

autrijus (1505)

autrijus
  (email not shown publicly)
http://pugs.blogs.com/

Journal of autrijus (1505)

Tuesday February 15, 2005
10:28 AM

Day 15: "return" of the monads

[ #23202 ]
Much of today has been spending on teaching Bestian to use Eclipse's haskell mode (as he can't stand vim), svk, and various other wonderful project-related tools.

However we did finish one important thing, namely the lexically-bound "return" inside subroutines now does a shiftT upwards, so you can say:

sub foo {
    return 1;
    return 2;
}

And it returns 1, not 2. A small step, but that means leave() and other flow control operators are similarily feasible now.

I've also started porting Test::More (or at least a close approximation of it) to pugs. The eventual goal is to populate t/*.t with test files run by pugs.

Various small scripting-related things are added: @*ARGS and $*PROGNAME (I failed to find the mention of $0's new name in Apoc/Syno, so I' just picked one randomly), some strigification tweaks, and (violating the FP6 spec a bit) a mostly functional "print" primitive. Stay tuned!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.