On Wednesday, August 28, 2002, at 09:56 AM, Larry Wall wrote: > my Date $date { 'June 25, 2002' }; > > Either way, this makes data declarations more like sub declarations > in syntax, though the semantics of what you do with the final closure > when are obviously different. That is, for ordinary data a bare {...} > is equivalent to "is now", while for a subroutine definition it's more > like "is on_demand".
I actually rather like that as a sort of compromise. Syntactic sugar, good. I'm assuming, however, that the difference in syntax between the two different uses of {...} would be easily identifiable via the assignment operator, viz: my Date $date { 'June 25, 2002' }; vs. my $sub = { ... }; Correct? Also, this leads me to wonder, is a closure is actually a typed object? my Closure $sub = { ... }; And if so, does it matter? > Whatever. My coffee stream hasn't yet suppressed my stream of > consciousness. I think we're all the better for it! :-) Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED]