Re: Valid hash keys?

2005-03-01 Thread Alex Burr
On Sun, Feb 27, 2005 at 03:36:42PM -0700, Luke Palmer wrote: > But the biggest problem is that if the user overloads 'equal' on two > objects, the hash should consider them equal. We could require that to > overload 'equal', you also have to overload .hash so that you've given > some thought to th

Re: Valid hash keys?

2005-02-27 Thread Alex Burr
On Sun, Feb 27, 2005 at 11:57:30PM +0100, Thomas Sandlaß wrote: > Alex Burr wrote: > > >[..] Actually, it would be useful sometimes > >to be able to give a hash an explicit canonicalizer: > > > >my %msdos_files is canonicalized_by lc; > > > >my %fractio

Re: Valid hash keys?

2005-02-27 Thread Alex Burr
On Sun, Feb 27, 2005 at 02:20:59AM -0700, Luke Palmer wrote: > I forgot an important concretity. Hashes should compare based on the > generic "equal" operator, which knows how to compare apples and apples, > and oranges and oranges, and occasionally a red orange to an apple. Um. Hashes don't rea

Re: Semantics of vector operations

2004-02-02 Thread Alex Burr
--- Andy Wardley <[EMAIL PROTECTED]> wrote: > Adding unicode operators to Perl will just reinforce > its reputation as > a "line noise" language. Perl6, the language with *real* runes. Come to think of it, some of the ogham runes would look more incharacter as a 'distribute' operator than guill

Re: Macro arguments themselves

2003-09-13 Thread Alex Burr
--- Austin Hastings <[EMAIL PROTECTED]> wrote: > > --- Luke Palmer <[EMAIL PROTECTED]> > wrote: > > > Then again, there are some very talented people > with a lot of free > > time in the Perl community; I wouldn't count it > out. > > That looked to me like a "Damian troll", hoping that > DC wou

Re: Subject: Macro arguments themselve

2003-09-12 Thread Alex Burr
[EMAIL PROTECTED] (Luke Palmer) writes: > I would hope the former. However, what about this compile-time > integral power macro[1]? > > macro power ($x, $p) { > if $p > 0 { > { $x * power($x, $p-1) } > } > else { > { 1 } > } > } > >

Re: Macro arguments themselves

2003-09-12 Thread Alex Burr
[EMAIL PROTECTED] (Luke Palmer) writes: > I would hope the former. However, what about this compile-time > integral power macro[1]? > > macro power ($x, $p) { > if $p > 0 { > { $x * power($x, $p-1) } > } > else { > { 1 } > } > } >