Re: implied pascal-like with or express

2000-08-18 Thread Dave Storrs
On Thu, 17 Aug 2000, Jonathan Scott Duff wrote: BTW, if we define Cwith to map keys of a hash to named place holders in a curried expression, this might be a good thing: with %person { print "Howdy, ", ^firstname, " ", ^lastname; } # becomes sub {

Re: implied pascal-like with or express

2000-08-18 Thread Dave Storrs
On Fri, 18 Aug 2000, Jonathan Scott Duff wrote: On Fri, Aug 18, 2000 at 10:39:36AM -0500, Brian Wheeler wrote: "Using" might be an interesting alternative Reminds me of BASIC :-) Works for me. What if the hash keys we want to use are not valid scalar names? For example,

Re: Permanent sublists (was Re: Language WG report, August 16th2000)

2000-08-17 Thread Dave Storrs
On Wed, 16 Aug 2000, Nathan Wiger wrote: "Bryan C. Warnock" wrote: ... is the cause for this. All the discussion is taking place in the master list before the sublists are spawned. You can only express the opinion that foo is not bar and never should be so many times. I agree. I

Re: pascal-like with was Re: Default filehandles(was Re: commandline option: $|++)

2000-08-17 Thread Dave Storrs
On Wed, 16 Aug 2000, David L. Nicol wrote: Anyone for generalizing "select" to a more general "with" keyword which would operate on a limited hash and be syntactic sugar for replacing all appearances of unqualified variables that match the hash's keys with references into it?

Re: pascal-like with was Re: Default filehandles(was Re: commandline option: $|++)

2000-08-17 Thread Dave Storrs
D'oh. s{2) .+^}{} Mismatch between brain and fingers there somewhere, thanks for pointing it out. Dave On 17 Aug 2000, Johan Vromans wrote: Dave Storrs [EMAIL PROTECTED] writes: 2) "express" should guarantee that, before

Re: pascal-like with was Re: Default filehandles(was Re: command line option: $|++)

2000-08-17 Thread Dave Storrs
This seems good...the HOF stuff seems to have pretty well accepted, and the thumbtack notation with it. Dave On Thu, 17 Aug 2000, Clayton Scott wrote: On Wed, 16 Aug 2000, David L. Nicol wrote: %record = loadrecord($studentID); with %record {

Re: Self-Sorting Containers

2000-08-11 Thread Dave Storrs
On Fri, 11 Aug 2000, David L. Nicol wrote: I've started talking about "containers" instead of arrays and hashes since those both tie directly to implementation details, and containers are abstractions. [...] If hashes normally had a sort method of null, they would work normally, but you

Re: Portable upper/lower case regexp matchesre and procedures

2000-08-11 Thread Dave Storrs
From the Perl6-language list: On Thu, 10 Aug 2000, Bart Lateur wrote: On Thu, 10 Aug 2000 17:21:44 +0300, Jason Elbaum wrote: \x match lowercase alpha char \X match uppercase alpha char You've got my vote, apart from one tiny detail: \x is already in use.

<    1   2