[boulder.pm] Gathering anyone?

Rob Nagler nagler at bivio.net
Mon Nov 5 16:23:54 CST 2001


> closures as callbacks).  Look at the Tk interface, for example.

Or bOP, which uses little languages extensively, but then you know
that already, Jim. ;-)

> So you'd like to provide a little language where this complexity is hidden
> in the syntax sugar.

I'm not convinced syntactic sugar is necessary.  Lisp has gotten away
without it for almost 50 years.  With clever use of AUTOLOAD (see
Bivio::UI::ViewLanguage as an example), you get a nice clean language.
We use this for testing.  Here's an example:

use strict;
use Bivio::Test;
Bivio::Test->unit([
    'Bivio::Type::CreditCardNumber' => [
	from_literal => [
	    ['4222222222222'] => ['4222222222222'],
	    ['5222222222222227'] => ['5222222222222227'],
	    ['342222222222223'] => ['342222222222223'],
	],
    ],
]);

> Unfortunately, your stand-alone little language
> rapidly gets over whelmed, and you wish you had Perl at your
> disposal.

Time to refactor!

Rob



More information about the Boulder-pm mailing list